Skip to content

Commit

Permalink
Build docs on push
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlia committed Aug 28, 2024
1 parent a579634 commit 3256af9
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,29 @@ jobs:
run: deno publish --dry-run --allow-dirty
- if: github.event_name == 'push'
run: deno publish --allow-dirty

publish-docs:
if: github.event_name == 'push'
needs: [publish]
runs-on: ubuntu-latest
permissions:
id-token: write
pages: write
deployments: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun install
working-directory: ${{ github.workspace }}/docs/
- run: bun run build
working-directory: ${{ github.workspace }}/docs/
- uses: actions/upload-pages-artifact@v3
with:
path: docs/.vitepress/dist
- id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 3256af9

Please sign in to comment.