Skip to content

Commit

Permalink
chore(workflow): add docs workflow to build and deploy documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
yamafaktory committed Aug 27, 2024
1 parent b7b016f commit a611b50
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: ci

on:
push:
branches:
- main

jobs:
upload-artifacts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mlugg/setup-zig@v1
- run: zig build docs
- uses: actions/upload-pages-artifact@v3
with:
path: zig-out/docs/

deploy-pages:
needs: upload-artifacts
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4

0 comments on commit a611b50

Please sign in to comment.