From ee096f5f5fa3f4b82c16a1e0a85ad824ba1574d6 Mon Sep 17 00:00:00 2001 From: Guillermo Bescos Date: Wed, 24 Jan 2024 16:56:37 +0000 Subject: [PATCH] Revert "Test this CI" This reverts commit 0cb2caedd3d3f7d49d7f53cd0d67fc12be092c2f. --- .../release-pyth-cosmwasm-contract.yml | 37 ++++++++++--------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release-pyth-cosmwasm-contract.yml b/.github/workflows/release-pyth-cosmwasm-contract.yml index ad52df77e5..1422baa4b3 100644 --- a/.github/workflows/release-pyth-cosmwasm-contract.yml +++ b/.github/workflows/release-pyth-cosmwasm-contract.yml @@ -1,6 +1,9 @@ name: Release Pyth Cosmwasm Contract -on: pull_request +on: + push: + tags: + - pyth-cosmwasm-contract-v* jobs: release-contract: name: Build and Release cosmwasm contract @@ -33,19 +36,19 @@ jobs: PREFIX="refs/tags/pyth-cosmwasm-contract-" echo "VERSION=${GITHUB_REF:${#PREFIX}}" >> $GITHUB_ENV - # - name: Release - # uses: softprops/action-gh-release@v1 - # with: - # files: | - # target_chains/cosmwasm/tools/cosmwasm.zip - # target_chains/cosmwasm/tools/injective.zip - # target_chains/cosmwasm/tools/osmosis.zip - # body: | - # Contracts - # - cosmwasm.zip contains the generic cosmwasm contract for most Cosmos SDK chains. - # - injective.zip contains injective specific contract. - # - osmosis.zip contains osmosis specific contract. - # draft: false - # # Setting VERSION in set env step and hence it will be available - # name: Pyth Cosmwasm Contract ${{ env.VERSION }} - # tag_name: ${{ github.ref_name }} + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: | + target_chains/cosmwasm/tools/cosmwasm.zip + target_chains/cosmwasm/tools/injective.zip + target_chains/cosmwasm/tools/osmosis.zip + body: | + Contracts + - cosmwasm.zip contains the generic cosmwasm contract for most Cosmos SDK chains. + - injective.zip contains injective specific contract. + - osmosis.zip contains osmosis specific contract. + draft: false + # Setting VERSION in set env step and hence it will be available + name: Pyth Cosmwasm Contract ${{ env.VERSION }} + tag_name: ${{ github.ref_name }}