Skip to content

Commit 231cfb6

Browse files
committed
workflows: Move to gh release
1 parent b027a62 commit 231cfb6

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
id-token: write
1414
# create release
1515
contents: write
16+
env:
17+
GH_TOKEN: ${{ github.token }}
1618
steps:
1719
- name: Clone repository
1820
uses: actions/checkout@v5
@@ -44,9 +46,12 @@ jobs:
4446
rm -rf tmp
4547
4648
- name: Create GitHub release
47-
uses: cockpit-project/action-release@7d2e2657382e8d34f88a24b5987f2b81ea165785
48-
with:
49-
filename: "dist/python_dbusmock-${{ github.ref_name }}.tar.gz"
49+
run: |
50+
VERSION="${{ github.ref_name }}"
51+
git tag -l --format='%(contents:body)' $VERSION > release-note.txt
52+
53+
gh release create --title $VERSION --notes-file release-note.txt $VERSION \
54+
"dist/python_dbusmock-${VERSION}.tar.gz"
5055
5156
- name: Create PyPy release
5257
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)