Skip to content

Commit 0c2c291

Browse files
committed
Add deploy wasm workflow for rv32emu
rv32emu's wasm build relies on the artifacts in this repository, so any new release in this repository should trigger the new WASM deployment to rv32emu-demo.
1 parent a847f81 commit 0c2c291

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Trigger wasm deploy event in rv32emu upon releasing
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types:
7+
- published
8+
9+
jobs:
10+
deploy-wasm-dispatch:
11+
runs-on: ubuntu-22.04
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Trigger wasm deploy event
15+
run: |
16+
curl -X POST \
17+
-H "Accept: application/vnd.github+json" \
18+
-H "Authorization: Bearer ${{ secrets.RV32EMU_WORKFLOW_TOKEN }}" \
19+
https://api.github.com/repos/sysprog21/rv32emu/dispatches \
20+
-d '{"event_type": "deploy_wasm"}'

0 commit comments

Comments
 (0)