Skip to content

[Manual] Documentation Deploy Pages #1

[Manual] Documentation Deploy Pages

[Manual] Documentation Deploy Pages #1

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