Add Cargo.lock for tag v0.26.0 #20
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: framework-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 | |
- "v[0-9]+.[0-9]+.[0-9]+-beta*" # Push events to matching v*, i.e. v1.0-rc1, v20.15.10-rc5 | |
jobs: | |
# Checks out the tag which is either created by the create-tag job or already exists | |
release-artifacts: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install latest stable | |
uses: dtolnay/rust-toolchain@stable | |
- name: Setup Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Generate Cargo.lock | |
working-directory: ./framework | |
run: | | |
cargo fetch --verbose | |
- name: Build Artifacts | |
working-directory: ./framework | |
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/optimizer:0.16.1 | |
tar -zcvf cosmwasm-artifacts.tar.gz artifacts | |
- name: Create Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
./framework/cosmwasm-artifacts.tar.gz | |
./framework/artifacts/*.wasm | |
body_path: ./framework/CHANGELOG.md |