From 072965536856a3ee9bc26972e03eabf10aaa25a5 Mon Sep 17 00:00:00 2001 From: Jake Boone Date: Fri, 1 Dec 2023 12:45:29 -0700 Subject: [PATCH] Build docs site with GHA --- .github/workflows/docs.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 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 0000000..b740faa --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,38 @@ +name: Documentation +on: + push: + branches: [main] + +jobs: + generate: + name: Generate documentation + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: oven-sh/setup-bun@v1 + with: + bun-version: latest + - run: bun install + - run: bun run docs + - uses: actions/upload-pages-artifact@v2 + with: + path: 'docs/' + + deploy: + name: Deploy documentation site + needs: generate + runs-on: ubuntu-latest + + permissions: + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2