Skip to content

Deploy API Reference #2

Deploy API Reference

Deploy API Reference #2

name: Deploy API Reference
on:
workflow_dispatch:
# Allow one concurrent deployment
concurrency:
group: 'pages'
cancel-in-progress: true
permissions:
contents: read
pages: write
id-token: write
jobs:
build-api-reference:
name: 'Build API Reference'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-node@v6
with:
node-version: lts/*
registry-url: 'https://registry.npmjs.org'
- name: Install latest NPM
run: |
npm --version
npm install -g npm@latest
npm --version
- name: Yarn Install
uses: nick-fields/retry@v4
with:
timeout_minutes: 15
retry_wait_seconds: 60
max_attempts: 3
command: yarn
- name: Build API reference (TypeDoc)
run: yarn reference:api:gh-pages
- name: Upload API reference artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: ./apidocs-out
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build-api-reference
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4