Merge pull request #13 from docknetwork/fix/always-pass-default-headers #104
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 Documentation | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. | |
with: | |
persist-credentials: false | |
- name: Setup Node JS | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
- name: Install and Build 🔧 # Only need to install jsdoc package here and then run docs script | |
run: | | |
yarn install --frozen-lockfile --ignore-scripts | |
yarn docs | |
- name: Install SSH Client 🔑 | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.DEPLOY_KEY }} | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
SSH: true | |
BRANCH: gh-pages # The branch the action should deploy to. | |
FOLDER: out # The folder the action should deploy. |