File tree Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches : ['main']
6
6
tags : ['v*.*.*']
7
- release :
8
- types : ['published']
9
7
10
8
concurrency : ${{ github.ref }}
11
9
@@ -233,3 +231,27 @@ jobs:
233
231
repository : ${{ env.IMAGE_NAME }}
234
232
readme-filepath : ./README.md
235
233
short-description : " Cardano Node built from source on Debian"
234
+
235
+ github-release :
236
+ runs-on : ubuntu-latest
237
+ needs : [multi-arch-manifest]
238
+ steps :
239
+ - run : " echo \" RELEASE_TAG=${GITHUB_REF#refs/tags/}\" >> $GITHUB_ENV"
240
+ - uses : actions/github-script@v5
241
+ if : startsWith(github.ref, 'refs/tags/')
242
+ with :
243
+ github-token : ${{ secrets.GITHUB_TOKEN }}
244
+ script : |
245
+ try {
246
+ await github.rest.repos.createRelease({
247
+ draft: false,
248
+ generate_release_notes: true,
249
+ name: process.env.RELEASE_TAG,
250
+ owner: context.repo.owner,
251
+ prerelease: false,
252
+ repo: context.repo.repo,
253
+ tag_name: process.env.RELEASE_TAG,
254
+ });
255
+ } catch (error) {
256
+ core.setFailed(error.message);
257
+ }
You can’t perform that action at this time.
0 commit comments