Skip to content

Commit ff34112

Browse files
committed
chore: replace release creation action with github CLI
1 parent bd6edbb commit ff34112

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
tags:
88
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
99

10+
permissions:
11+
contents: write
12+
1013
jobs:
1114
release:
1215
name: Create Release
@@ -16,18 +19,14 @@ jobs:
1619
uses: actions/checkout@v3
1720
- name: Create Release
1821
id: create_release
19-
uses: actions/create-release@v1
2022
env:
2123
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22-
with:
23-
tag_name: ${{ github.ref }}
24-
release_name: ${{ github.ref }}
25-
body: |
26-
Changes in this Release
27-
- First Change
28-
- Second Change
29-
draft: false
30-
prerelease: false
24+
tag: ${{ github.ref_name }}
25+
run: |
26+
gh release create "$tag" \
27+
--repo="$GITHUB_REPOSITORY" \
28+
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
29+
--generate-notes
3130
3231
build-linux-gnu:
3332
name: release artifacts

0 commit comments

Comments
 (0)