11
11
env :
12
12
CARGO_TERM_COLOR : always
13
13
REGISTRY : ghcr.io
14
- LATEST_CHANNEL_DIR : ./channel-fuel-latest.toml.d/
15
14
16
15
jobs :
17
16
cancel-previous-runs :
@@ -109,19 +108,6 @@ jobs:
109
108
- name : Run Cargo.toml linter
110
109
run : git ls-files | grep Cargo.toml$ | xargs --verbose -n 1 cargo-toml-lint
111
110
112
- - name : Notify if Job Fails
113
- uses : ravsamhq/notify-slack-action@v1
114
- if : always() && github.ref == 'refs/heads/master'
115
- with :
116
- status : ${{ job.status }}
117
- token : ${{ secrets.GITHUB_TOKEN }}
118
- notification_title : " {workflow} has {status_message}"
119
- message_format : " {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> : <{run_url}|View Run Results>"
120
- footer : " "
121
- notify_when : " failure"
122
- env :
123
- SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_NOTIFY_BUILD }}
124
-
125
111
publish-check :
126
112
# Only do this job if publishing a release
127
113
needs :
@@ -138,10 +124,8 @@ jobs:
138
124
curl -sSLf "https://github.com/TomWright/dasel/releases/download/v1.24.3/dasel_linux_amd64" -L -o dasel && chmod +x dasel
139
125
mv ./dasel /usr/local/bin/dasel
140
126
./.github/workflows/scripts/verify_tag.sh ${{ github.ref_name }} Cargo.toml
141
-
142
127
- name : Notify if Job Fails
143
128
uses : ravsamhq/notify-slack-action@v1
144
- if : always()
145
129
with :
146
130
status : ${{ job.status }}
147
131
token : ${{ secrets.GITHUB_TOKEN }}
@@ -150,7 +134,7 @@ jobs:
150
134
footer : " "
151
135
notify_when : " failure"
152
136
env :
153
- SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_NOTIFY_BUILD }}
137
+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_TOOLING }}
154
138
155
139
build-release :
156
140
name : build fuelup release binaries
@@ -248,49 +232,6 @@ jobs:
248
232
asset_name : ${{ env.ZIP_FILE_NAME }}
249
233
asset_content_type : application/gzipa
250
234
251
- update-latest-channel :
252
- name : Re-publish the latest channel
253
- needs : [cancel-previous-runs, build-release]
254
- if : github.event_name == 'release' && github.event.action == 'published'
255
- runs-on : ubuntu-latest
256
- steps :
257
- - name : Checkout sources
258
- uses : actions/checkout@v3
259
-
260
- - name : Install build-channel script
261
- run : cargo install --debug --path ./ci/build-channel
262
-
263
- - name : Checkout gh-pages
264
- uses : actions/checkout@v3
265
- with :
266
- ref : gh-pages
267
- path : gh-pages
268
-
269
- # Re-generate the channel TOML file
270
- - name : Rebuild channel with updated components
271
- run : |
272
- mkdir -p ${{ env.LATEST_CHANNEL_DIR }}
273
- CHANNEL_TOML="channel-fuel-latest.toml"
274
-
275
- FORC_VERSION=$(grep -A1 '\[pkg.forc\]' ./gh-pages/channel-fuel-latest.toml | cut -d "\"" -f2)
276
- FUEL_CORE_VERSION=$(grep -A1 '\[pkg.fuel-core\]' ./gh-pages/channel-fuel-latest.toml | cut -d "\"" -f2)
277
-
278
- PUBLISHED_DATE=$(date +'%Y-%m-%d')
279
- build-channel $CHANNEL_TOML $PUBLISHED_DATE --github-run-id $GITHUB_RUN_ID forc=$FORC_VERSION fuel-core=$FUEL_CORE_VERSION
280
-
281
- cp $CHANNEL_TOML ${{ env.LATEST_CHANNEL_DIR }}
282
-
283
- - name : Deploy latest channel
284
- if : ${{ env.LATEST_COMPATIBLE_FORC && env.LATEST_COMPATIBLE_FUEL_CORE }}
285
- uses : peaceiris/actions-gh-pages@v3
286
- with :
287
- github_token : ${{ secrets.GITHUB_TOKEN }}
288
- publish_dir : ${{ env.LATEST_CHANNEL_DIR }}
289
- keep_files : true
290
- destination_dir : ./
291
- user_name : ' github-actions[bot]'
292
- user_email : ' github-actions[bot]@users.noreply.github.com'
293
-
294
235
post-release-checks :
295
236
name : Do post-release checks
296
237
needs : [cancel-previous-runs, build-release]
0 commit comments