Skip to content

Commit fb25cfc

Browse files
committed
chore: automate to create release
1 parent 8f9373f commit fb25cfc

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Publish to PyPI
22
on:
33
push:
44
tags:
5-
- '*'
5+
- '*.*.*'
66
jobs:
77
build:
88
runs-on: ubuntu-latest
@@ -24,10 +24,12 @@ jobs:
2424
poetry_publish_options: "--skip-existing"
2525

2626
- name: Create Release
27-
uses: actions/create-release@v1
27+
uses: softprops/action-gh-release@v2
2828
with:
29-
tag_name: ${{ github.ref }}
30-
release_name: ${{ github.ref }}
29+
name: ${{ github.ref_name }}
30+
tag_name: ${{ github.ref_name }}
31+
files: ./dist/*
32+
make_latest: true
3133
body: |
32-
This is a release for the version ${{ github.ref }}.
33-
PyPI package: https://pypi.org/project/${{ github.repository }}/${{ github.ref }}
34+
This is a release for the version ${{ github.ref_name }}.
35+
PyPI package: https://pypi.org/project/${{ github.repository_name }}/${{ github.ref_name }}

0 commit comments

Comments
 (0)