Skip to content

Commit

Permalink
Deploy docs into GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlia committed Mar 8, 2024
1 parent 34dcd46 commit 12cf8c0
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
working-directory: ${{ github.workspace }}/examples/blog/
- run: deno task publish --dry-run

publish:
publish-jsr:
if: github.event_name == 'push'
needs: [test, lint]
runs-on: ubuntu-latest
Expand Down Expand Up @@ -99,3 +99,25 @@ jobs:
project: fedify-blog
entrypoint: ./examples/blog/main.ts
root: .

publish-docs:
needs: [publish-jsr]
runs-on: ubuntu-latest
permissions:
id-token: write
pages: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- run: deno task lume
working-directory: ${{ github.workspace }}/docs/
- uses: actions/upload-pages-artifact@v3
with:
path: docs/_site
- id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 12cf8c0

Please sign in to comment.