Skip to content

2025.10.25-Linux-Image #8

2025.10.25-Linux-Image

2025.10.25-Linux-Image #8

Workflow file for this run

name: Trigger wasm deploy event in rv32emu upon releasing
on:
workflow_dispatch:
inputs:
target:
description: 'Which deploy event to trigger?'
required: true
default: 'deploy_user_wasm'
type: choice
options:
- deploy_user_wasm
- deploy_system_wasm
release:
types:
- published
jobs:
deploy-wasm-dispatch:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
# Auto-trigger based on release tag
- name: Trigger user wasm deploy event (from release tag)
if: github.event_name == 'release' && contains(github.event.release.tag_name, 'ELF')
run: |
curl -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.RV32EMU_WORKFLOW_TOKEN }}" \
https://api.github.com/repos/sysprog21/rv32emu/dispatches \
-d '{"event_type": "deploy_user_wasm"}'
- name: Trigger system wasm deploy event (from release tag)
if: github.event_name == 'release' && contains(github.event.release.tag_name, 'Linux')
run: |
curl -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.RV32EMU_WORKFLOW_TOKEN }}" \
https://api.github.com/repos/sysprog21/rv32emu/dispatches \
-d '{"event_type": "deploy_system_wasm"}'
# Manual trigger via button
- name: Trigger deploy event (manual)
if: github.event_name == 'workflow_dispatch'
run: |
curl -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.RV32EMU_WORKFLOW_TOKEN }}" \
https://api.github.com/repos/sysprog21/rv32emu/dispatches \
-d '{"event_type": "${{ github.event.inputs.target }}"}'