Merge pull request #125 from lifeomic/dependabot/npm_and_yarn/nanoid-… #102
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: Deploy to GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Exit if not on master branch | |
if: endsWith(github.ref, 'master') == false | |
run: exit 0 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 12 | |
registry-url: https://registry.npmjs.org | |
- name: Build | |
run: | | |
yarn | |
yarn build:gh-pages | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@3.6.2 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages # The branch the action should deploy to. | |
FOLDER: out # The folder the action should deploy. | |
CLEAN: true # Automatically remove deleted files from the deploy branch |