Merge pull request #179 from viru-tech/set-host #246
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: gh-pages | |
on: | |
push: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "15.x" | |
- run: "[[ -z $(git show HEAD -- docs) ]] || npm install" | |
- run: "[[ -z $(git show HEAD -- docs) ]] || npm run docs:build" | |
- run: "[[ -z $(git show HEAD -- docs) ]] || dev/deploy_gh_pages.sh" | |
env: | |
TOKEN_GITHUB: ${{ secrets.TOKEN_GITHUB }} |