Skip to content

Commit aa60e59

Browse files
authored
Make each release trigger an automatic deployment for infinitechess.org
1 parent f9416f2 commit aa60e59

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/build-wasm.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,11 @@ jobs:
4141
files: |
4242
pkg/hydrochess_wasm_bg.wasm
4343
pkg/hydrochess_wasm.js
44+
45+
- name: Trigger infinitechess.org deploy
46+
run: |
47+
curl -s -X POST \
48+
-H "Authorization: Bearer ${{ secrets.INFINITECHESS_DISPATCH_TOKEN }}" \
49+
-H "Accept: application/vnd.github.v3+json" \
50+
https://api.github.com/repos/Infinite-Chess/infinitechess.org/actions/workflows/deploy.yml/dispatches \
51+
-d '{"ref":"prod"}'

0 commit comments

Comments
 (0)