Skip to content

Commit

Permalink
Try if it succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Jan 24, 2024
1 parent 007552e commit c2172e6
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/release-pyth-cosmwasm-contract.yml
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

0 comments on commit c2172e6

Please sign in to comment.