[Manual] Documentation Deploy Pages #1
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: '[Manual] Documentation Deploy Pages' | |
on: workflow_dispatch | |
jobs: | |
build: | |
name: Documentation build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: 'npm' | |
- name: Setup | |
run: | | |
npm ci --ignore-scripts | |
cd www/ | |
npm ci --ignore-scripts | |
- name: Build | |
run: | | |
rm -rf www/docs/API/ | |
npm run docs:build | |
- name: Upload | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: www/build | |
deploy: | |
name: Documentation deploy | |
runs-on: ubuntu-latest | |
needs: [build] | |
permissions: | |
pages: write # to deploy to Pages | |
id-token: write # to verify the deployment originates from an appropriate source | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Deploy | |
id: deployment | |
uses: actions/deploy-pages@v4 |