Skip to content

Commit 2f25dc4

Browse files
authored
Re-validate website using a deployment webhook (#7485)
1 parent 0f071df commit 2f25dc4

File tree

3 files changed

+2
-24
lines changed

3 files changed

+2
-24
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,5 @@ jobs:
552552
npm publish --tag ci
553553
554554
- name: Update Website Playground
555-
env:
556-
NEXT_REVALIDATE_SECRET_TOKEN: ${{ secrets.NEXT_REVALIDATE_SECRET_TOKEN }}
557-
run: yarn workspace playground revalidate
555+
run: curl -X POST "${{ secrets.CLOUDFLARE_PAGES_DEPLOYMENT_HOOK }}"
558556
shell: bash

packages/playground/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"clean": "rescript clean",
77
"test": "node ./playground_test.cjs",
88
"build": "rescript clean && rescript build && node scripts/generate_cmijs.mjs && rollup -c",
9-
"upload-bundle": "node scripts/upload_bundle.mjs",
10-
"revalidate": "./scripts/website_update_playground.sh"
9+
"upload-bundle": "node scripts/upload_bundle.mjs"
1110
},
1211
"dependencies": {
1312
"@rescript/react": "^0.13.1",

packages/playground/scripts/website_update_playground.sh

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)