Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update release ci #211

Merged
merged 2 commits into from
Aug 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 14 additions & 17 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release
on:
push:
tags:
- '*'
- "*"

permissions:
contents: write
Expand All @@ -17,26 +17,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"
Expand All @@ -49,14 +48,12 @@ 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
with:
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"