File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 59
59
publish-to-pypi :
60
60
name : >-
61
61
Publish Package to PyPI
62
- if : startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
63
62
needs :
64
63
- build
65
64
runs-on : ubuntu-latest
@@ -105,9 +104,10 @@ jobs:
105
104
- name : Create GitHub Release
106
105
env :
107
106
GITHUB_TOKEN : ${{ github.token }}
108
- run : >-
107
+ run : |
108
+ VERSION=$(sed -n 's/^version = "\(.*\)"/\1/p' pyproject.toml)
109
109
gh release create
110
- "$GITHUB_REF_NAME "
110
+ "$VERSION "
111
111
--repo "$GITHUB_REPOSITORY"
112
112
--notes ""
113
113
- name : Upload artifact signatures to GitHub Release
@@ -116,7 +116,8 @@ jobs:
116
116
# Upload to GitHub Release using the `gh` CLI.
117
117
# `dist/` contains the built packages, and the
118
118
# sigstore-produced signatures and certificates.
119
- run : >-
119
+ run : |
120
+ VERSION=$(sed -n 's/^version = "\(.*\)"/\1/p' pyproject.toml)
120
121
gh release upload
121
122
"$GITHUB_REF_NAME" dist/**
122
123
--repo "$GITHUB_REPOSITORY"
You can’t perform that action at this time.
0 commit comments