Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .github/pages/_config.yml

This file was deleted.

183 changes: 0 additions & 183 deletions .github/pages/index.html

This file was deleted.

35 changes: 22 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,20 +109,22 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# Generates API documentation for GitHub Pages on any release
# Supports both simple tags (v1.2.3) and package-scoped tags (@scope/package@1.2.3)
publish-gh-pages:
# Generates API documentation and deploys to GitHub Pages on any release
deploy-docs:
runs-on: ubuntu-latest
if: github.event_name == 'release'
needs: [publish]

permissions:
contents: write
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for all branches and tags

- name: Install pnpm
uses: pnpm/action-setup@v4
Expand All @@ -137,13 +139,20 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Configure Git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Build packages
run: pnpm build:all

- name: Generate documentation
run: ./scripts/generate-gh-pages.sh "${{ github.ref_name }}"
run: pnpm docs

- name: Configure Pages
uses: actions/configure-pages@v5

- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: tmp/docs

- name: Push to gh-pages
run: git push origin gh-pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Loading
Loading