From 2ec5775306e1124523fe1d1ece4d1122753587a6 Mon Sep 17 00:00:00 2001 From: David Rubin <87927264+Rexicon226@users.noreply.github.com> Date: Mon, 26 Aug 2024 14:16:24 -0700 Subject: [PATCH] feat(docs): add github page action (#254) --- .github/workflows/docs.yml | 46 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 000000000..f269e8a78 --- /dev/null +++ b/.github/workflows/docs.yml @@ -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 + \ No newline at end of file