Skip to content

Commit 614d35e

Browse files
author
Dev Kalra
authored
[cosmwasm] contracts release (#734)
* test release * mv instead of rm * remove todos * add comment
1 parent ccc2e33 commit 614d35e

File tree

1 file changed

+26
-23
lines changed

1 file changed

+26
-23
lines changed

.github/workflows/release-pyth-cosmwasm-contract.yml

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,38 @@ jobs:
1111
runs-on: ubuntu-latest
1212
defaults:
1313
run:
14-
working-directory: target_chains/cosmwasm
14+
working-directory: target_chains/cosmwasm/tools
1515
steps:
1616
- uses: actions/checkout@v2
17-
- name: Build
17+
- name: Setup tool
18+
run: npm ci
19+
- name: Build generic cosmwasm contract
1820
run: |
19-
bash ./build.sh
20-
zip -r artifacts.zip artifacts
21+
npm run build-contract -- --cosmwasm
22+
mv ../artifacts ../cosmwasm
23+
zip -r cosmwasm.zip ../cosmwasm
24+
- name: Build injective cosmwasm contract
25+
run: |
26+
npm run build-contract -- --injective
27+
mv ../artifacts ../injective
28+
zip -r injective.zip ../injective
29+
2130
- name: Set env
2231
run: |
2332
PREFIX="refs/tags/pyth-cosmwasm-contract-"
2433
echo "VERSION=${GITHUB_REF:${#PREFIX}}" >> $GITHUB_ENV
25-
- name: Create Release
26-
id: create_release
27-
uses: actions/create-release@v1
28-
env:
29-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
35+
- name: Release
36+
uses: softprops/action-gh-release@v1
3037
with:
31-
tag_name: ${{ github.ref_name }}
32-
# Setting VERSION in set env step and hence it will be available
33-
release_name: Pyth Cosmwasm Contract ${{ env.VERSION }}
38+
files: |
39+
target_chains/cosmwasm/tools/cosmwasm.zip
40+
target_chains/cosmwasm/tools/injective.zip
41+
body: |
42+
Contracts
43+
- cosmwasm.zip contains the generic cosmwasm contract for most Cosmos SDK chains.
44+
- injective.zip contains injectives specific contract.
3445
draft: false
35-
prerelease: false
36-
- name: Upload Release Asset
37-
id: upload-release-asset
38-
uses: actions/upload-release-asset@v1
39-
env:
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41-
with:
42-
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
43-
asset_path: target_chains/cosmwasm/artifacts.zip
44-
asset_name: artifacts.zip
45-
asset_content_type: application/zip
46+
# Setting VERSION in set env step and hence it will be available
47+
name: Pyth Cosmwasm Contract ${{ env.VERSION }}
48+
tag_name: ${{ github.ref_name }}

0 commit comments

Comments
 (0)