Skip to content

Commit

Permalink
chore: add build-canisters action; try to fix publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
zensh committed Jul 8, 2024
1 parent 6c634df commit 8eeeadc
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 8 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build-canisters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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
9 changes: 1 addition & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Publish
on:
push:
tags:
- 'v*'
branches: [ "main" ]
jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -12,9 +11,3 @@ jobs:
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
ignore-unpublished-changes: true
args: -p idempotent-proxy-types
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
ignore-unpublished-changes: true
args: -p idempotent-proxy-server

0 comments on commit 8eeeadc

Please sign in to comment.