Skip to content

Commit 2f124be

Browse files
test: Testig WASM release
1 parent a300c58 commit 2f124be

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/test-wasm-release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
description: 'Tag for draft release (e.g. test-wasm-<sha>)'
88
required: false
99
default: ''
10+
pull_request:
1011

1112
jobs:
1213
build-and-upload:
@@ -28,7 +29,16 @@ jobs:
2829
- name: Build WASM artifact
2930
run: make wasm/confidence_resolver.wasm
3031

32+
- name: Upload WASM artifact (PR)
33+
if: ${{ github.event_name == 'pull_request' }}
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: confidence_resolver.wasm
37+
path: wasm/confidence_resolver.wasm
38+
retention-days: 7
39+
3140
- name: Compute tag
41+
if: ${{ github.event_name == 'workflow_dispatch' }}
3242
id: compute_tag
3343
run: |
3444
if [ -n "${{ github.event.inputs.tag_name }}" ]; then
@@ -38,6 +48,7 @@ jobs:
3848
fi
3949
4050
- name: Upload WASM to draft release
51+
if: ${{ github.event_name == 'workflow_dispatch' }}
4152
uses: softprops/action-gh-release@v2
4253
with:
4354
tag_name: ${{ steps.compute_tag.outputs.tag }}

0 commit comments

Comments
 (0)