summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/docs.yaml42
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml
new file mode 100644
index 0000000..4e00bf2
--- /dev/null
+++ b/.github/workflows/docs.yaml
@@ -0,0 +1,42 @@
+name: Deploy Docs
+
+on:
+ push:
+ branches:
+ - main
+ paths:
+ - "docs/**"
+ - "mise.toml"
+ workflow_dispatch:
+
+jobs:
+ deploy:
+ runs-on: ubuntu-24.04
+ concurrency:
+ group: docs-${{ github.ref }}
+ cancel-in-progress: true
+ permissions:
+ contents: read
+ defaults:
+ run:
+ working-directory: "./docs"
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v6
+
+ - name: Setup Development Environment
+ uses: jdx/mise-action@v3
+ with:
+ working_directory: .
+
+ - name: Install dependencies
+ run: bun install
+
+ - name: Build documentation
+ run: bun run build
+
+ - name: Deploy to Cloudflare Workers
+ uses: cloudflare/wrangler-action@v3
+ with:
+ apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
+ workingDirectory: docs