Merge pull request #4 from PFC-developer/fix/2024-08-07-previous-batches #4
Workflow file for this run
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: Release Artifacts | |
on: | |
push: | |
tags: | |
- "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10 | |
- "v[0-9]+.[0-9]+.[0-9]+-rc*" # Push events to matching v*, i.e. v1.0-rc1, v20.15.10-rc5 | |
jobs: | |
release-artifacts: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install latest stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
components: rustfmt, clippy | |
- name: Setup Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Generate Cargo.lock | |
run: | | |
cargo build --workspace | |
cargo fetch --verbose | |
- name: Build Artifacts | |
run: | | |
docker run --rm -v "$(pwd)":/code \ | |
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \ | |
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \ | |
cosmwasm/workspace-optimizer:0.15.1 | |
tar -zcvf cosmwasm-artifacts.tar.gz artifacts | |
- name: Create Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: cosmwasm-artifacts.tar.gz | |
body_path: CHANGELOG.md |