set final versions in cargo and readme #33
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: Provwasm Smart Contract Binary Release | |
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.0-beta2 | |
jobs: | |
# This action cleans up previously running instances of a workflow on the same branch. This accomplishes | |
# the task of automatically cancelling CI runs on pushes to the same branch, which is a common feature in | |
# most CI systems but currently not possible with GitHub actions. | |
cleanup_runs: | |
runs-on: ubuntu-latest | |
name: Cleanup Workflows | |
steps: | |
- uses: rokroskar/[email protected] | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'" | |
test_tutorial_smart_contract: | |
runs-on: ubuntu-latest | |
name: Test Tutorial Smart Contract | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Add wasm32 target | |
run: | | |
rustup target add wasm32-unknown-unknown | |
- name: Build wasm binary | |
run: | | |
cd ./contracts/tutorial | |
make all | |
- name: Smart Contract Test setup | |
uses: provenance-io/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
provenance_version: "v1.19.0-rc5" | |
test_script: "./scripts/gh-action-test/tutorial_test.sh" | |
test_attrs_smart_contract: | |
runs-on: ubuntu-latest | |
name: Test Attr Smart Contract | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Add wasm32 target | |
run: | | |
rustup target add wasm32-unknown-unknown | |
- name: Build wasm binary | |
run: | | |
cd ./contracts/attrs | |
make all | |
- name: Smart Contract Test setup | |
uses: provenance-io/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
provenance_version: "v1.19.0-rc5" | |
smart_contract_action_version: "latest" | |
test_script: "./scripts/gh-action-test/attrs_test.sh" | |
test_marker_smart_contract: | |
runs-on: ubuntu-latest | |
name: Test Marker Smart Contract | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Add wasm32 target | |
run: | | |
rustup target add wasm32-unknown-unknown | |
- name: Build wasm binary | |
run: | | |
cd ./contracts/marker | |
make all | |
- name: Provenance Test | |
uses: provenance-io/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
provenance_version: "v1.19.0-rc5" | |
smart_contract_action_version: "latest" | |
test_script: "./scripts/gh-action-test/marker_test.sh" | |
test_msgfees_smart_contract: | |
runs-on: ubuntu-latest | |
name: Test MsgFees Smart Contract | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Add wasm32 target | |
run: | | |
rustup target add wasm32-unknown-unknown | |
- name: Build wasm binary | |
run: | | |
cd ./contracts/msgfees | |
make all | |
- name: Provenance Test | |
uses: provenance-io/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
provenance_version: "v1.19.0-rc5" | |
smart_contract_action_version: "latest" | |
test_script: "./scripts/gh-action-test/msgfees_test.sh" | |
test_name_smart_contract: | |
runs-on: ubuntu-latest | |
name: Test Name Smart Contract | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Add wasm32 target | |
run: | | |
rustup target add wasm32-unknown-unknown | |
- name: Build wasm binary | |
run: | | |
cd ./contracts/name | |
make all | |
- name: Smart Contract Test setup | |
uses: provenance-io/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
provenance_version: "v1.19.0-rc5" | |
smart_contract_action_version: "latest" | |
test_script: "./scripts/gh-action-test/name_test.sh" | |
test_scope_smart_contract: | |
runs-on: ubuntu-latest | |
name: Test Scope Smart Contract | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Add wasm32 target | |
run: | | |
rustup target add wasm32-unknown-unknown | |
- name: Build wasm binary | |
run: | | |
cd ./contracts/scope | |
make all | |
# - name: Smart Contract Test setup | |
# uses: provenance-io/[email protected] | |
# with: | |
# github_token: ${{ secrets.GITHUB_TOKEN }} | |
# provenance_version: "v1.19.0-rc5" | |
# smart_contract_action_version: "latest" | |
# test_script: "./scripts/gh-action-test/scope_test.sh" | |
test_trigger_smart_contract: | |
runs-on: ubuntu-latest | |
name: Test Trigger Smart Contract | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Add wasm32 target | |
run: | | |
rustup target add wasm32-unknown-unknown | |
- name: Build wasm binary | |
run: | | |
cd ./contracts/trigger | |
make all | |
- name: Smart Contract Test setup | |
uses: provenance-io/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
provenance_version: "v1.19.0-rc5" | |
smart_contract_action_version: "latest" | |
test_script: "./scripts/gh-action-test/trigger_test.sh" | |
create_release: | |
needs: [ test_attrs_smart_contract, test_marker_smart_contract, test_msgfees_smart_contract, test_name_smart_contract, test_scope_smart_contract, test_trigger_smart_contract, test_tutorial_smart_contract ] | |
runs-on: ubuntu-latest | |
name: Create Release | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Create release | |
uses: softprops/action-gh-release@v1 | |
id: create_release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
name: ${{ github.ref_name }} | |
draft: false | |
prerelease: false | |
body_path: RELEASE_CHANGELOG.md | |
token: ${{ secrets.GITHUB_TOKEN }} | |
# files: | | |
# **/artifacts/*.wasm |