Skip to content

Merge pull request #485 from bruyeret/refactor-orientation #66

Merge pull request #485 from bruyeret/refactor-orientation

Merge pull request #485 from bruyeret/refactor-orientation #66

Workflow file for this run

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