Skip to content

Commit dfe6b1d

Browse files
uhyoclaude
andauthored
Migrate docs deployment from GitHub Pages to Cloudflare Workers (#60)
* feat: switch docs deploy from GitHub Pages to Cloudflare Workers Add wrangler.toml for the docs package to deploy static assets to Cloudflare Workers. Replace the GitHub Pages build/deploy workflow with a single job that builds and deploys using wrangler-action. https://claude.ai/code/session_013EHt7QrnymweVjZuftDiH5 * chore: rename wrangler project to funstack-static https://claude.ai/code/session_013EHt7QrnymweVjZuftDiH5 * chore: update wrangler compatibility_date to 2026-02-18 https://claude.ai/code/session_013EHt7QrnymweVjZuftDiH5 --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 83e930a commit dfe6b1d

2 files changed

Lines changed: 12 additions & 23 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@ on:
77

88
permissions:
99
contents: read
10-
pages: write
11-
id-token: write
1210

1311
concurrency:
14-
group: "pages"
12+
group: "deploy-docs"
1513
cancel-in-progress: false
1614

1715
jobs:
18-
build:
16+
deploy:
1917
runs-on: ubuntu-latest
2018

2119
steps:
@@ -36,23 +34,8 @@ jobs:
3634
- name: Build docs
3735
run: pnpm turbo run build --filter=docs
3836

39-
- name: Setup Pages
40-
uses: actions/configure-pages@v5
41-
42-
- name: Upload artifact
43-
uses: actions/upload-pages-artifact@v4
37+
- name: Deploy to Cloudflare Workers
38+
uses: cloudflare/wrangler-action@v3
4439
with:
45-
path: packages/docs/dist/public
46-
47-
deploy:
48-
environment:
49-
name: github-pages
50-
url: ${{ steps.deployment.outputs.page_url }}
51-
52-
runs-on: ubuntu-slim
53-
needs: build
54-
55-
steps:
56-
- name: Deploy to GitHub Pages
57-
id: deployment
58-
uses: actions/deploy-pages@v4
40+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
41+
workingDirectory: packages/docs

packages/docs/wrangler.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#:schema node_modules/wrangler/config-schema.json
2+
name = "funstack-static"
3+
compatibility_date = "2026-02-18"
4+
5+
[assets]
6+
directory = "./dist/public"

0 commit comments

Comments
 (0)