Merge pull request #500 from Lgt2x/disable-girder-option #68
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Publish | |
on: | |
push: | |
branches: | |
- master | |
- stable | |
jobs: | |
publish: | |
name: Publish | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- name: Install dependencies | |
run: npm ci | |
- name: Validate | |
run: npm run validate | |
- name: Build | |
run: npm run build:release | |
- name: Write version | |
run: npm run version | |
- name: Generate bundle | |
run: npm run bundle | |
- name: Set git config | |
run: | | |
git config --global user.name "Github Actions" | |
git config --global user.email "[email protected]" | |
- name: Publish website | |
env: | |
GIT_PUBLISH_URL: https://${{ secrets.GH_PUBLISH_CREDS }}@github.com/Kitware/glance.git | |
run: npm run doc:publish | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: npm run semantic-release |