-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,37 @@ | ||
name: Release Pyth Cosmwasm Contract | ||
|
||
on: pull_request | ||
|
||
on: | ||
push: | ||
tags: | ||
- pyth-cosmwasm-contract-v* | ||
jobs: | ||
release-contract: | ||
name: Build and Release cosmwasm contract | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: target_chains/cosmwasm/deploy-scripts | ||
working-directory: target_chains/cosmwasm/tools | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup tool | ||
run: npm ci | ||
- name: Build generic cosmwasm contract | ||
run: | | ||
npm run build-contract -- --cosmwasm | ||
mv ../artifacts ../cosmwasm | ||
zip -r cosmwasm.zip ../cosmwasm | ||
- name: Build injective cosmwasm contract | ||
run: | | ||
npm run build-contract -- --injective | ||
mv ../artifacts ../injective | ||
zip -r injective.zip ../injective | ||
- name: Build osmosis cosmwasm contract | ||
run: | | ||
npm run build-contract -- --osmosis | ||
mv ../artifacts ../osmosis | ||
zip -r osmosis.zip ../osmosis | ||
- name: Set env | ||
run: | | ||
PREFIX="refs/tags/pyth-cosmwasm-contract-" | ||
echo "VERSION=${GITHUB_REF:${#PREFIX}}" >> $GITHUB_ENV |