Skip to content

Commit

Permalink
feat(docs): add github page action (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexicon226 authored Aug 26, 2024
1 parent ac2b762 commit 2ec5775
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: docs

on:
push:
branches: [main]
workflow_dispatch:

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

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
publish:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4

- name: setup-pages
uses: actions/configure-pages@v5

- name: setup-zig
uses: mlugg/setup-zig@v1
with:
version: 0.13.0

- name: build-docs
run: zig build docs

- name: upload
uses: actions/upload-pages-artifact@v3
with:
path: 'zig-out/docs'

- name: deploy
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 2ec5775

Please sign in to comment.