Merge pull request #242 from meggsimum/dependabot/npm_and_yarn/babel/… #192
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: publish-docs | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-publish-docs: | |
runs-on: ubuntu-latest | |
steps: | |
# use Node.js 16 instead of deprecated v12 in Ubuntu image | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install and Build | |
run: | | |
npm install | |
npm run docs | |
# prevents Jekyll defaults by GitHub | |
touch out/.nojekyll | |
- name: Publish docs | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: out # The folder the action should deploy. |