diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..cbf8999 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,48 @@ +name: Deploy Documentation Site +on: + push: + branches: ["main"] + + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +permissions: {} +jobs: + build: + permissions: + contents: write + name: Build & Deploy + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + + - name: Setup Pages + uses: actions/configure-pages@v5 + + - uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - run: bun i + + - run: bun run docs + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: docs + + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file