chore: add build-canisters
action; try to fix publish
action
#1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
- uses: dfinity/setup-dfx@main | |
- name: Build canisters | |
run: | | |
dfx --version | |
dfx build idempotent-proxy-canister | |
cd target/wasm32-unknown-unknown/release | |
gzip idempotent_proxy_canister.wasm | |
sha256sum idempotent_proxy_canister.wasm.gz > idempotent_proxy_canister.wasm.gz.sha256.txt | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
idempotent_proxy_canister.wasm.gz | |
idempotent_proxy_canister.wasm.gz.sha256.txt |