Skip to content

Commit b1407ca

Browse files
test: Test wasm upload with tag
1 parent 2f124be commit b1407ca

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,23 @@ jobs:
3737
path: wasm/confidence_resolver.wasm
3838
retention-days: 7
3939

40+
- name: Compute tag (PR)
41+
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false }}
42+
id: compute_tag_pr
43+
run: |
44+
echo "tag=test-wasm-pr-${GITHUB_SHA}" >> $GITHUB_OUTPUT
45+
46+
- name: Upload WASM to draft release (PR)
47+
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false }}
48+
uses: softprops/action-gh-release@v2
49+
with:
50+
tag_name: ${{ steps.compute_tag_pr.outputs.tag }}
51+
draft: true
52+
files: |
53+
wasm/confidence_resolver.wasm
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
4057
- name: Compute tag
4158
if: ${{ github.event_name == 'workflow_dispatch' }}
4259
id: compute_tag

0 commit comments

Comments
 (0)