From eeec4d5f66138fb4044165c2bc96c577ca68ce76 Mon Sep 17 00:00:00 2001 From: Guillermo Bescos Date: Wed, 24 Jan 2024 15:03:45 +0000 Subject: [PATCH] Fix ci --- .../release-pyth-cosmwasm-contract.yml | 36 ++----------------- 1 file changed, 3 insertions(+), 33 deletions(-) diff --git a/.github/workflows/release-pyth-cosmwasm-contract.yml b/.github/workflows/release-pyth-cosmwasm-contract.yml index 08fcaf392a..e4808de489 100644 --- a/.github/workflows/release-pyth-cosmwasm-contract.yml +++ b/.github/workflows/release-pyth-cosmwasm-contract.yml @@ -1,16 +1,14 @@ name: Release Pyth Cosmwasm Contract -on: - push: - tags: - - pyth-cosmwasm-contract-v* +on: pull_request + jobs: release-contract: name: Build and Release cosmwasm contract runs-on: ubuntu-latest defaults: run: - working-directory: target_chains/cosmwasm/tools + working-directory: target_chains/cosmwasm/deploy-scripts steps: - uses: actions/checkout@v2 - name: Setup tool @@ -18,37 +16,9 @@ jobs: - 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 - - - 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 }}