From 132ed0245331298e9e79db5a926ee41a7049a48d Mon Sep 17 00:00:00 2001 From: gluax <16431709+gluax@users.noreply.github.com> Date: Tue, 27 Aug 2024 09:06:14 -0700 Subject: [PATCH 1/2] chore(ci): update release ci --- .github/workflows/Release.yml | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 4adb271d..284f01a1 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -1,8 +1,9 @@ name: Release on: + workflow_dispatch: push: tags: - - '*' + - "*" permissions: contents: write @@ -17,26 +18,25 @@ jobs: runs-on: ubuntu-latest steps: - name: 📥 Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 + with: + fetch-depth: 0 - - name: 📥 Install stable toolchain - uses: actions-rs/toolchain@v1 + - name: 📥 Install Rust + uses: dtolnay/rust-toolchain@stable with: - profile: minimal - toolchain: 1.72.1 + toolchain: stable target: wasm32-unknown-unknown - override: true + + - name: 📥 Install wasm-opt + run: cargo install wasm-opt --locked - name: 🔨 Compile optimized WASM contracts - run: | - docker run --rm -v $GITHUB_WORKSPACE:/code \ - --mount type=volume,source=contract_cache,target=/code/target \ - --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \ - cosmwasm/rust-optimizer:0.12.11 + run: cargo xtask wasm-opt - name: 🪵 Conventional Changelog id: changelog - uses: TriPSs/conventional-changelog-action@v3 + uses: TriPSs/conventional-changelog-action@v5 with: github-token: ${{ secrets.github_token }} output-file: "false" @@ -49,9 +49,7 @@ jobs: uses: jmgilman/actions-generate-checksum@v1 with: patterns: | - artifacts/data_requests.wasm - artifacts/proxy_contract.wasm - artifacts/staking.wasm + target/seda_contract.wasm - name: 📦 Create GitHub Release uses: ncipollo/release-action@v1 @@ -59,4 +57,4 @@ jobs: allowUpdates: true generateReleaseNotes: true body: ${{ steps.changelog.outputs.clean_changelog }} - artifacts: "checksum.txt,artifacts/data_requests.wasm,artifacts/proxy_contract.wasm,artifacts/staking.wasm" + artifacts: "checksum.txt,target/seda_contract.wasm" From 297eb1ee2ccb591c2ce7aef70e1a5f0f2d21845f Mon Sep 17 00:00:00 2001 From: gluax <16431709+gluax@users.noreply.github.com> Date: Tue, 27 Aug 2024 09:22:55 -0700 Subject: [PATCH 2/2] chore(ci): remove manual dispatch for release --- .github/workflows/Release.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 284f01a1..711e96bd 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -1,6 +1,5 @@ name: Release on: - workflow_dispatch: push: tags: - "*"