Merge remote-tracking branch 'refs/remotes/origin/main' #72
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: publish api docs | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- "docs/**" | |
- "!docs/changelog.md" | |
- "src/**" | |
branches: | |
- main | |
jobs: | |
publish-documentation: | |
permissions: | |
id-token: write | |
pages: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- name: Install Node.js dependencies | |
run: npm install | |
- name: Build documentation | |
run: npm run docs:build | |
- name: Upload Pages artifact | |
uses: actions/[email protected] | |
with: | |
path: tmp/build | |
- id: deployment | |
name: Deploy documentation to GitHub Pages | |
uses: actions/[email protected] |