Skip to content

Commit

Permalink
add github action for ci artifact creation
Browse files Browse the repository at this point in the history
  • Loading branch information
yun-yeo committed Aug 10, 2021
1 parent 44e1842 commit 0fc85c1
Show file tree
Hide file tree
Showing 15 changed files with 40 additions and 11 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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
- 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/rust-optimizer:0.11.5
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ contracts/hackatom/hash.txt

# Auto-gen
.cargo-ok

artifacts
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 1.1.0

Mirror V2 Initial Release
11 changes: 0 additions & 11 deletions artifacts/checksums.txt

This file was deleted.

Binary file removed artifacts/mirror_collateral_oracle.wasm
Binary file not shown.
Binary file removed artifacts/mirror_collector.wasm
Binary file not shown.
Binary file removed artifacts/mirror_community.wasm
Binary file not shown.
Binary file removed artifacts/mirror_factory.wasm
Binary file not shown.
Binary file removed artifacts/mirror_gov.wasm
Binary file not shown.
Binary file removed artifacts/mirror_limit_order.wasm
Binary file not shown.
Binary file removed artifacts/mirror_lock.wasm
Binary file not shown.
Binary file removed artifacts/mirror_mint.wasm
Binary file not shown.
Binary file removed artifacts/mirror_oracle.wasm
Binary file not shown.
Binary file removed artifacts/mirror_short_reward.wasm
Binary file not shown.
Binary file removed artifacts/mirror_staking.wasm
Binary file not shown.

0 comments on commit 0fc85c1

Please sign in to comment.