Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
ci: release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
politeWall committed Nov 23, 2023
1 parent 9a62052 commit e86f1be
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

on:
push:
tags:
- "v*"

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Compile with Docker
run: |
docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/rust-optimizer:0.14.0
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
4 changes: 2 additions & 2 deletions scripts/get_all_price_wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ elysd tx wasm store artifacts/trade_shield_contract.wasm --from=treasury --keyri
sleep 2
instantiate_hash=$(extract_txhash elysd tx wasm instantiate 1 '{"process_order_executor": "elys1ehdv05a4jvxnpqdlhznqxanpzun7uhle5rqyn2"}' --from=treasury --label "Contract" --chain-id=elystestnet-1 --gas=auto --gas-adjustment=1.3 -b=sync --keyring-backend=test --no-admin -y 2> /dev/null)
sleep 2
addr=$(extract_contract_address elysd q tx $instantiate_hash)
addr=$(extract_contract_address elysd q tx $instantiate_hash)
echo "contract addr:"
echo "$addr"
elysd q wasm contract-state smart $addr '{"get_all_prices": {}}'
# elysd q wasm contract-state smart $addr '{"get_all_prices": {}}'

0 comments on commit e86f1be

Please sign in to comment.