Skip to content

Commit 68bae5c

Browse files
workflow fixes
1 parent e1f22e8 commit 68bae5c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/reusable-wasm-near.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,18 @@ jobs:
6060
run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
6161
- name: "Build"
6262
run: python3 Tools/wasm/wasm_build.py emscripten-near
63+
- name: Prepare artifacts
64+
run: |
65+
mkdir -p artifacts
66+
cp ${{ env.CROSS_BUILD_EMSCRIPTEN_NEAR }}/python.wasm artifacts/
67+
cp ${{ env.CROSS_BUILD_EMSCRIPTEN_NEAR }}/python-stdlib.zip artifacts/
68+
cp Tools/wasm/wasm_optimizer.py artifacts/
6369
- name: Upload artifacts
6470
uses: actions/upload-artifact@v4
6571
with:
66-
name: build-artifacts-${{ github.sha }}
72+
name: python-wasm-near-${{ github.sha }}
6773
path: |
68-
${{ env.CROSS_BUILD_EMSCRIPTEN_NEAR }}/python.wasm
69-
${{ env.CROSS_BUILD_EMSCRIPTEN_NEAR }}/python-stdlib.zip
70-
Tools/wasm/wasm_optimizer.py
74+
artifacts/
7175
- name: "Upload python.wasm"
7276
if: github.event_name == 'release'
7377
uses: actions/upload-release-asset@v1

0 commit comments

Comments
 (0)