1
- name : Release
1
+ name : Publish Release
2
2
3
3
on :
4
4
push :
5
5
tags :
6
6
- " v*.*.*"
7
7
8
- concurrency :
8
+ concurrency :
9
9
group : publish-release
10
10
cancel-in-progress : false
11
11
12
12
env :
13
13
GITHUB_REF_NAME : " $(echo ${{ github.ref_name }} | tr '//' '-')"
14
14
15
15
jobs :
16
- upgrade_handler_version_check :
16
+ pre-release-checks :
17
17
runs-on : ubuntu-latest
18
18
timeout-minutes : 10
19
19
steps :
35
35
36
36
publish-release :
37
37
runs-on : buildjet-4vcpu-ubuntu-2004
38
- # runs-on: ubuntu-latest
39
38
timeout-minutes : 60
40
39
needs :
41
- - upgrade_handler_version_check
40
+ - pre-release-checks
42
41
steps :
43
42
- uses : actions/checkout@v3
44
43
68
67
with :
69
68
token : ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}
70
69
generate_release_notes : true
71
- # files: |
72
- # dist/checksums.txt
73
70
74
71
- name : Publish Release Files
75
72
env :
78
75
touch .release-env
79
76
make release
80
77
78
+ # # TODO - Will add in later after optimizing docker images
81
79
# - name: Build, tag, and push docker images
82
80
# uses: ./.github/actions/build-docker-images
83
81
# with:
@@ -86,14 +84,14 @@ jobs:
86
84
# IMAGE_TAG: ${{ env.TAG_NAME }}
87
85
# GHCR_USERNAME: ${{ secrets.PAT_GITHUB_SERVICE_ACCT_USERNAME }}
88
86
# GHCR_TOKEN: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}
89
-
87
+
90
88
build-alpine :
91
89
runs-on : ["ubuntu-latest"]
92
90
timeout-minutes : 30
93
91
concurrency :
94
92
group : " alpine-build-test"
95
93
needs :
96
- - upgrade_handler_version_check
94
+ - pre-release-checks
97
95
steps :
98
96
- uses : actions/checkout@v3
99
97
@@ -163,75 +161,73 @@ jobs:
163
161
files : |
164
162
zetacored-*
165
163
zetaclientd-*
166
-
164
+
167
165
- name : Clean Up Alpine Workspace
168
166
if : always()
169
167
shell : alpine.sh --root {0}
170
168
run : |
171
169
set -e # fail on error
172
170
rm -rf *
173
-
171
+
174
172
- name : Clean Up Workspace
175
173
if : always()
176
174
shell : bash
177
175
run : rm -rf *
178
176
179
-
180
- # announce-release:
181
- # # runs-on: buildjet-2vcpu-ubuntu-2004
182
- # runs-on: ubuntu-latest
183
- # timeout-minutes: 10
184
- # needs:
185
- # - publish-release
186
- # - build-alpine
187
- # steps:
188
- # - uses: actions/checkout@v3
189
- # - name: Get Version
190
- # run: |
191
- # VERSION=$(cat app/setup_handlers.go | grep "const releaseVersion" | cut -d ' ' -f4 | tr -d '"')
192
- # echo "BINARY_VERSION=${VERSION}" >> ${GITHUB_ENV}
193
-
194
- # - name: Determine Release Type
195
- # id: determine_release_type
196
- # run: |
197
- # if [[ "${{ env.BINARY_VERSION }}" =~ ^v[0-9]+\.0\.0+$ ]]; then
198
- # echo "RELEASE_TYPE=major" >> ${GITHUB_ENV}
199
- # elif [[ "${{ env.BINARY_VERSION }}" =~ ^v[0-9]+\.[0-9]+\.[1-9]+$ ]]; then
200
- # echo "RELEASE_TYPE=minor" >> ${GITHUB_ENV}
201
- # else
202
- # echo "RELEASE_TYPE=unknown" >> ${GITHUB_ENV}
203
- # fi
204
-
205
- # - name: "SEND:DISCORD:MESSAGE"
206
- # if: steps.determine_release_type.outputs.RELEASE_TYPE == 'major'
207
- # uses: gzukel/CosmosComposites/send_discord_message@main
208
- # with:
209
- # discord_token: "${{ secrets.DISCORD_TOKEN }}"
210
- # discord_channel_id: "${{ secrets.DISCORD_CHANNEL_ID }}"
211
- # discord_message: |
212
- # Hey <@&1122981184255840306>! A new version of the ZetaChain software has been released.
213
-
214
- # Major Version Upgrade (e.g. v5.x.x to V6.x.x) must be completed through a governance proposal.
215
- # We will submit a governance proposal in the next few days.
216
- # More specific information including block height will be shared as part of the governance proposal.
217
-
218
- # See the release notes for more details. https://github.com/zeta-chain/node/releases/tag/${{ env.BINARY_VERSION }}
219
-
220
- # # - name: "SEND:DISCORD:MESSAGE"
221
- # # if: steps.determine_release_type.outputs.RELEASE_TYPE == 'minor'
222
- # # uses: gzukel/CosmosComposites/send_discord_message@main
223
- # # with:
224
- # # discord_token: "${{ secrets.DISCORD_TOKEN }}"
225
- # # discord_channel_id: "${{ secrets.DISCORD_CHANNEL_ID }}"
226
- # # discord_message: |
227
- # # Hey <@&1122981184255840306>! A new version of the zetachain node has been released.
228
-
229
- # # Minor Version Upgrade (e.g. v5.0.x to v5.1.x) can be applied without a governance proposal.
230
- # # Please review the release notes for any specific upgrade instructions or considerations.
231
-
232
- # # See the release notes for more details. https://github.com/zeta-chain/node/releases/tag/${{ env.BINARY_VERSION }}
233
-
234
- # - name: Clean Up Workspace
235
- # if: always()
236
- # shell: bash
237
- # run: rm -rf *
177
+ announce-release :
178
+ runs-on : ubuntu-latest
179
+ timeout-minutes : 10
180
+ needs :
181
+ - publish-release
182
+ - build-alpine
183
+ steps :
184
+ - uses : actions/checkout@v3
185
+ - name : Get Version
186
+ run : |
187
+ VERSION=$(cat app/setup_handlers.go | grep "const releaseVersion" | cut -d ' ' -f4 | tr -d '"')
188
+ echo "BINARY_VERSION=${VERSION}" >> ${GITHUB_ENV}
189
+
190
+ - name : Determine Release Type
191
+ id : determine_release_type
192
+ run : |
193
+ if [[ "${{ env.BINARY_VERSION }}" =~ ^v[0-9]+\.0\.0+$ ]]; then
194
+ echo "RELEASE_TYPE=major" >> ${GITHUB_ENV}
195
+ elif [[ "${{ env.BINARY_VERSION }}" =~ ^v[0-9]+\.[0-9]+\.[1-9]+$ ]]; then
196
+ echo "RELEASE_TYPE=minor" >> ${GITHUB_ENV}
197
+ else
198
+ echo "RELEASE_TYPE=unknown" >> ${GITHUB_ENV}
199
+ fi
200
+
201
+ - name : " SEND:DISCORD:MESSAGE"
202
+ if : steps.determine_release_type.outputs.RELEASE_TYPE == 'major'
203
+ uses : gzukel/CosmosComposites/send_discord_message@main
204
+ with :
205
+ discord_token : " ${{ secrets.DISCORD_TOKEN }}"
206
+ discord_channel_id : " ${{ secrets.DISCORD_CHANNEL_ID }}"
207
+ discord_message : |
208
+ Hey <@&1122981184255840306>! A new version of the ZetaChain software has been released.
209
+
210
+ Major Version Upgrade (e.g. v5.x.x to V6.x.x) must be completed through a governance proposal.
211
+ We will submit a governance proposal in the next few days.
212
+ More specific information including block height will be shared as part of the governance proposal.
213
+
214
+ See the release notes for more details. https://github.com/zeta-chain/node/releases/tag/${{ env.BINARY_VERSION }}
215
+
216
+ # - name: "SEND:DISCORD:MESSAGE"
217
+ # if: steps.determine_release_type.outputs.RELEASE_TYPE == 'minor'
218
+ # uses: gzukel/CosmosComposites/send_discord_message@main
219
+ # with:
220
+ # discord_token: "${{ secrets.DISCORD_TOKEN }}"
221
+ # discord_channel_id: "${{ secrets.DISCORD_CHANNEL_ID }}"
222
+ # discord_message: |
223
+ # Hey <@&1122981184255840306>! A new version of the zetachain node has been released.
224
+
225
+ # Minor Version Upgrade (e.g. v5.0.x to v5.1.x) can be applied without a governance proposal.
226
+ # Please review the release notes for any specific upgrade instructions or considerations.
227
+
228
+ # See the release notes for more details. https://github.com/zeta-chain/node/releases/tag/${{ env.BINARY_VERSION }}
229
+
230
+ - name : Clean Up Workspace
231
+ if : always()
232
+ shell : bash
233
+ run : rm -rf *
0 commit comments