@@ -38,20 +38,20 @@ jobs:
38
38
echo "tag_name=v${VERSION}" >> $GITHUB_OUTPUT
39
39
echo "release_name=v${VERSION}" >> $GITHUB_OUTPUT
40
40
41
- - name : Build changelog
42
- id : build_changelog
43
- uses : mikepenz/release-changelog-builder-action@v4
44
- with :
45
- toTag : ${{ steps.release_info.outputs.tag_name }}
46
- env :
47
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41
+ # - name: Build changelog
42
+ # uses: mikepenz/release-changelog-builder-action@v4
43
+ # id: build_changelog
44
+ # with:
45
+ # outputFile : ${{ steps.release_info.outputs.tag_name }}-changelog.md
46
+ # env:
47
+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48
48
49
49
- name : Create release
50
50
id : create_release
51
51
env :
52
52
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
53
53
run : |
54
- gh release create ${{ steps.release_info.outputs.tag_name }} --target main --latest --notes ${{ steps.build_changelog .outputs.changelog }}
54
+ gh release create ${{ steps.release_info.outputs.tag_name }} --target main -F ${{ steps.release_info .outputs.tag_name }}-changelog.md --generate-notes
55
55
56
56
release :
57
57
name : ${{ matrix.target }} (${{ matrix.runner }})
@@ -94,12 +94,17 @@ jobs:
94
94
steps :
95
95
- uses : actions/checkout@v4
96
96
97
- # Install rust and go.
98
- - name : Setup CI
99
- uses : ./.github/actions/setup
100
- with :
101
- pull_token : ${{ secrets.PULL_TOKEN }}
97
+ # Install rust and go
98
+ - name : Install rust
99
+ run : |
100
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
101
+ rustup install stable
102
102
103
+ - name : Install go
104
+ uses : actions/setup-go@v5
105
+ with :
106
+ go-version : " ^1.22.1"
107
+
103
108
- name : Check go installation
104
109
run : |
105
110
go version
@@ -196,7 +201,19 @@ jobs:
196
201
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
197
202
run : |
198
203
gh release upload ${{ needs.prepare.outputs.tag_name }} ${{ steps.artifacts.outputs.file_name }}
199
-
204
+
205
+ set-latest-release :
206
+ name : Set latest release
207
+ runs-on : ubuntu-latest
208
+ needs : [release, prepare]
209
+ if : success()
210
+ steps :
211
+ - name : Set latest release
212
+ env :
213
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
214
+ run : |
215
+ # Wait until all the binaries have been built to set the latest release.
216
+ gh release edit ${{ needs.prepare.outputs.tag_name }} --latest
200
217
201
218
toolchain-test :
202
219
name : " Test toolchain installation (${{ matrix.name }})"
@@ -288,6 +305,15 @@ jobs:
288
305
update_existing : true
289
306
filename : .github/RELEASE_FAILURE_ISSUE_TEMPLATE.md
290
307
308
+ # If any of the jobs fail, this will create a high-priority issue to signal so.
309
+ delete-failed-release :
310
+ name : Delete failed release
311
+ runs-on : ubuntu-latest
312
+ needs : [prepare, release]
313
+ if : failure()
314
+ steps :
291
315
- name : Delete failed release
316
+ env :
317
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
292
318
run : |
293
319
gh release delete ${{ needs.prepare.outputs.tag_name }} --cleanup-tag
0 commit comments