Skip to content

Commit 8a44580

Browse files
committed
fix: use dedicated wrangler.pages.toml for Pages deploy
- Remove pages_build_output_dir from Worker wrangler.toml (conflicts with main field) - Create wrangler.pages.toml with name + pages_build_output_dir - Update CI to use --config wrangler.pages.toml --commit-dirty=true - Eliminates both wrangler warnings in deploy step
1 parent 9b149a5 commit 8a44580

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ jobs:
158158
run: sed -i "s/__GIT_SHA__/${GITHUB_SHA::8}/g" docs/index.html docs/my-attestations.html
159159

160160
- name: Deploy dashboard
161-
run: npx wrangler pages deploy docs --project-name action-gate-dashboard
161+
run: npx wrangler pages deploy --config wrangler.pages.toml --commit-dirty=true
162162
env:
163163
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
164164
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

wrangler.pages.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# SPDX-FileCopyrightText: 2026 The Linux Foundation
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
name = "action-gate-dashboard"
6+
pages_build_output_dir = "docs"

wrangler.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ PORT = "3000"
2828
# APP_ID
2929
# PRIVATE_KEY
3030
# WEBHOOK_SECRET
31-
32-
# ── Cloudflare Pages (dashboard) ────────────────────────────────────────────
33-
pages_build_output_dir = "docs"
3431
# GITHUB_CLIENT_ID
3532
# GITHUB_CLIENT_SECRET
3633
# API_BASE_URL

0 commit comments

Comments
 (0)