Skip to content

Commit

Permalink
gzip wasm step for gh release
Browse files Browse the repository at this point in the history
  • Loading branch information
sideffect0 committed Feb 3, 2024
1 parent 6aa89ca commit b57ff0a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
tags:
- '*'
branches:
- 'main'
- 'fix/gh-release'
jobs:
token-build:
runs-on: ubuntu-latest
Expand All @@ -26,12 +26,12 @@ jobs:
run: pip3 install --user pytest
# - name: Run tests
# run: python3 -m unittest tests/icrc1_tests.py
- name: Gzip wasm
run: gzip -fckn ./.dfx/ic/canisters/token/token.wasm > token.wasm.gz
- name: Compute Wasm Hash
run: shasum -a 256 ./.dfx/ic/canisters/token/token.wasm | cut -d ' ' -f 1 > token.wasm.shasum
run: shasum -a 256 ./token.wasm.gz | cut -d ' ' -f 1 > token.wasm.gz.shasum
- name: Print Wasm Hash
run: cat ./token.wasm.shasum
- name: Copy Wasm Build
run: cp ./.dfx/ic/canisters/token/token.wasm token.wasm
run: cat ./token.wasm.gz.shasum
- name: Upload to release
uses: svenstaro/upload-release-action@v2
with:
Expand Down

0 comments on commit b57ff0a

Please sign in to comment.