Merge pull request #507 from Kitware/fix-svg-rendering #71
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: Write version | |
run: npm run version | |
# build the inline version before release version | |
- name: Build | |
run: npm run build:inline && npm run build:release | |
- 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 |