Skip to content

Commit 3b25848

Browse files
committed
fix use comment for docs preview URL
1 parent f85048d commit 3b25848

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/after-ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,17 @@ jobs:
7676
allow_forks: true
7777
workflow_conclusion: completed
7878

79+
- uses: cloudflare/wrangler-action@v3
80+
id: deploy
81+
with:
82+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
83+
environment: previews
84+
workingDirectory: docs-site
85+
command: >
86+
deploy
87+
--var GIT_COMMIT_SHA:${{ github.event.workflow_run.head_sha }}
88+
--var GIT_BRANCH:${{ github.event.workflow_run.head_branch }}
89+
7990
- name: Set preview URL
8091
run: uv run --with httpx .github/set_docs_preview_url.py
8192
env:

docs-site/wrangler.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ workers_dev = false
99
directory = "../site"
1010
binding = "ASSETS"
1111
# so we can rewrite the HTML to insert the version notice
12-
experimental_serve_directly = false
12+
run_worker_first = true
1313

1414
[[kv_namespaces]]
1515
binding = "VERSION_NOTICE_CACHE"

0 commit comments

Comments
 (0)