-
Notifications
You must be signed in to change notification settings - Fork 220
51 lines (48 loc) · 1.77 KB
/
release-pyth-cosmwasm-contract.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Release Pyth Cosmwasm Contract
on: pull_request
jobs:
release-contract:
name: Build and Release cosmwasm contract
runs-on: ubuntu-latest
defaults:
run:
working-directory: target_chains/cosmwasm/deploy-scripts
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
# - 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 }}