File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 26
26
echo "Creating tag $VERSION with message:"
27
27
echo "$MSG"
28
28
git tag -a "$VERSION" -m "$MSG"
29
+ echo "MPYTHON_VERSION=$VERSION" >> $GITHUB_ENV
29
30
- name : Publish tags
30
31
run : git push --tags
31
32
@@ -105,9 +106,8 @@ jobs:
105
106
env :
106
107
GITHUB_TOKEN : ${{ github.token }}
107
108
run : |
108
- VERSION=$(sed -n 's/^version = "\(.*\)"/\1/p' pyproject.toml)
109
109
gh release create
110
- "$VERSION "
110
+ "${{ env.MPYTHON_VERSION }} "
111
111
--repo "$GITHUB_REPOSITORY"
112
112
--notes ""
113
113
- name : Upload artifact signatures to GitHub Release
@@ -117,9 +117,8 @@ jobs:
117
117
# `dist/` contains the built packages, and the
118
118
# sigstore-produced signatures and certificates.
119
119
run : |
120
- VERSION=$(sed -n 's/^version = "\(.*\)"/\1/p' pyproject.toml)
121
120
gh release upload
122
- "$GITHUB_REF_NAME " dist/**
121
+ "${{ env.MPYTHON_VERSION }} " dist/**
123
122
--repo "$GITHUB_REPOSITORY"
124
123
125
124
publish-to-testpypi :
You can’t perform that action at this time.
0 commit comments