Skip to content

Commit 5bd4943

Browse files
committed
fix: try to fix release action
1 parent d5690ea commit 5bd4943

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ jobs:
1616
cargo install ic-wasm
1717
mkdir out
1818
cargo build --target wasm32-unknown-unknown --release --locked -p idempotent-proxy-canister
19-
cp target/wasm32-unknown-unknown/release/idempotent_proxy_canister.wasm out/
20-
cp src/idempotent-proxy-canister/idempotent-proxy-canister.did out/idempotent_proxy_canister.did
21-
ic-wasm out/idempotent_proxy_canister.wasm -o out/idempotent_proxy_canister.wasm shrink
22-
ic-wasm out/idempotent_proxy_canister.wasm -o out/idempotent_proxy_canister.wasm optimize O3 --inline-functions-with-loops
23-
gzip out/idempotent_proxy_canister.wasm
24-
SHA256="$(sha256sum < "out/idempotent_proxy_canister.wasm.gz" | sed 's/ .*$//g')"
25-
echo $SHA256 > "out/idempotent_proxy_canister.wasm.gz.$SHA256.txt"
19+
CAN="idempotent_proxy_canister"
20+
cp "target/wasm32-unknown-unknown/release/$CAN.wasm" out/
21+
cp src/idempotent-proxy-canister/idempotent-proxy-canister.did "out/$CAN.did"
22+
ic-wasm "out/$CAN.wasm" -o "out/$CAN.wasm" metadata candid:service -f "out/$CAN.did" -v public
23+
ic-wasm "out/$CAN.wasm" -o "out/$CAN.wasm" shrink
24+
ic-wasm "out/$CAN.wasm" -o "out/$CAN.wasm" optimize O3 --inline-functions-with-loops
25+
gzip "out/$CAN.wasm"
26+
SHA256="$(sha256sum < "out/$CAN.wasm.gz" | sed 's/ .*$//g')"
27+
echo $SHA256 > "out/$CAN.wasm.gz.$SHA256.txt"
2628
ls -lah out
2729
- name: Release
2830
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)