Skip to content

ci(release): add stable GA gate and publish path #8

ci(release): add stable GA gate and publish path

ci(release): add stable GA gate and publish path #8

Workflow file for this run

name: docs-pages
on:
push:
branches: [main, master]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate API docs
shell: pwsh
run: |
pwsh -File scripts/generate_api_docs.ps1
- name: Build static docs site
shell: bash
run: |
mkdir -p site/examples
cp -r docs/* site/
if [ -d examples ]; then cp -r examples/* site/examples/; fi
cp docs/index.html site/index.html
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: site
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4