Skip to content

Commit

Permalink
ci: deploy docs to GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
DISTREAT committed Jan 11, 2025
1 parent 8132e56 commit a257bae
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,3 @@ jobs:
with:
version: 0.14.0-dev.2628+5b5c60f43
- run: zig fmt --check .
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mlugg/setup-zig@v1
with:
version: 0.14.0-dev.2628+5b5c60f43
- run: zig build docs
30 changes: 30 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy static content to Pages
on:
push:
branches: ["master"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: mlugg/setup-zig@v1
with:
version: 0.14.0-dev.2628+5b5c60f43
- run: zig build docs
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: "./docs/"
- uses: actions/deploy-pages@v4
id: deployment

0 comments on commit a257bae

Please sign in to comment.