Skip to content

Commit 3ad1ded

Browse files
committed
ci: deploy guide worker
1 parent 1cbb132 commit 3ad1ded

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,36 @@ jobs:
8080
8181
${{ steps.deploy.outputs.command-output }}
8282
83+
deploy-guide:
84+
runs-on: ubuntu-latest
85+
name: Deploy Guide Worker
86+
if: ${{ github.event_name != 'pull_request' && github.actor != 'dependabot[bot]' }}
87+
permissions:
88+
contents: read
89+
steps:
90+
- uses: actions/checkout@v6.0.2
91+
- name: Setup Node.js environment
92+
uses: actions/setup-node@v6.3.0
93+
with:
94+
node-version-file: ".node-version"
95+
cache: "yarn"
96+
- name: Enable Corepack
97+
run: corepack enable
98+
- name: Install dependencies
99+
run: yarn install
100+
- name: Build guide
101+
run: yarn build:guide
102+
- name: Deploy guide
103+
uses: cloudflare/wrangler-action@v3
104+
with:
105+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
106+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
107+
workingDirectory: apps/guide
108+
command: deploy
109+
wranglerVersion: 4.85.0
110+
env:
111+
FORCE_COLOR: 0
112+
83113
e2e:
84114
runs-on: ubuntu-latest
85115
name: E2E Tests

apps/guide/wrangler.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name = "guide"
2+
compatibility_date = "2026-05-20"
3+
workers_dev = true
4+
5+
[assets]
6+
directory = "./out"
7+
not_found_handling = "single-page-application"

0 commit comments

Comments
 (0)