2021-07-21 13:59:12 +00:00
|
|
|
name: Build and deploy documentation
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-and-deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
npm install
|
2021-08-05 10:01:25 +00:00
|
|
|
npm run generate-docs
|
2021-07-26 11:52:25 +00:00
|
|
|
npm run build-docs-production
|
2021-07-21 13:59:12 +00:00
|
|
|
- name: Set up SSH
|
|
|
|
uses: webfactory/ssh-agent@v0.4.1
|
|
|
|
with:
|
|
|
|
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
|
|
- name: Deploy
|
|
|
|
uses: JamesIves/github-pages-deploy-action@releases/v3
|
|
|
|
with:
|
|
|
|
SSH: true
|
|
|
|
SINGLE_COMMIT: true
|
|
|
|
BASE_BRANCH: main
|
|
|
|
BRANCH: gh-pages
|
|
|
|
FOLDER: docs-dist
|