@@ -38,20 +38,24 @@ 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_DEBUG=true gh release create ${{ steps.release_info.outputs.tag_name }} --target main --generate-notes --latest=false
55
+
56
+ - name : Print GH version
57
+ run : |
58
+ gh version
55
59
56
60
release :
57
61
name : ${{ matrix.target }} (${{ matrix.runner }})
@@ -94,12 +98,17 @@ jobs:
94
98
steps :
95
99
- uses : actions/checkout@v4
96
100
97
- # Install rust and go.
98
- - name : Setup CI
99
- uses : ./.github/actions/setup
100
- with :
101
- pull_token : ${{ secrets.PULL_TOKEN }}
101
+ # Install rust and go
102
+ - name : Install rust
103
+ run : |
104
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
105
+ rustup install stable
102
106
107
+ - name : Install go
108
+ uses : actions/setup-go@v5
109
+ with :
110
+ go-version : " ^1.22.1"
111
+
103
112
- name : Check go installation
104
113
run : |
105
114
go version
@@ -196,7 +205,21 @@ jobs:
196
205
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
197
206
run : |
198
207
gh release upload ${{ needs.prepare.outputs.tag_name }} ${{ steps.artifacts.outputs.file_name }}
199
-
208
+
209
+ set-latest-release :
210
+ name : Set latest release
211
+ runs-on : ubuntu-latest
212
+ needs : [release, prepare]
213
+ if : success()
214
+ steps :
215
+ - uses : actions/checkout@v4
216
+
217
+ - name : Set latest release
218
+ env :
219
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
220
+ run : |
221
+ # Wait until all the binaries have been built to set the latest release.
222
+ gh release edit ${{ needs.prepare.outputs.tag_name }} --latest
200
223
201
224
toolchain-test :
202
225
name : " Test toolchain installation (${{ matrix.name }})"
@@ -224,8 +247,6 @@ jobs:
224
247
uses : " actions/checkout@v4"
225
248
226
249
- name : " Install SP1"
227
- env :
228
- SP1UP_VERSION : ${{ github.ref_name == 'main' && 'latest' || github.ref_name }}
229
250
run : |
230
251
cd sp1up
231
252
chmod +x sp1up
@@ -288,6 +309,17 @@ jobs:
288
309
update_existing : true
289
310
filename : .github/RELEASE_FAILURE_ISSUE_TEMPLATE.md
290
311
312
+ # If any of the jobs fail, this will create a high-priority issue to signal so.
313
+ delete-failed-release :
314
+ name : Delete failed release
315
+ runs-on : ubuntu-latest
316
+ needs : [prepare, release]
317
+ if : failure()
318
+ steps :
319
+ - uses : actions/checkout@v4
320
+
291
321
- name : Delete failed release
322
+ env :
323
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
292
324
run : |
293
325
gh release delete ${{ needs.prepare.outputs.tag_name }} --cleanup-tag
0 commit comments