File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,10 @@ jobs:
1313 permissions :
1414 contents : write
1515 id-token : write
16- outputs :
17- MPYTHON_VERSION : ${{ steps.getversion.outputs.MPYTHON_VERSION }}
1816 steps :
1917 - name : Check out package
2018 uses : actions/checkout@v4
2119 - name : Get package version
22- id : getversion
2320 run : |
2421 VERSION=$(sed -n 's/^version = "\(.*\)"/\1/p' pyproject.toml)
2522 echo "pyproject.toml version: $VERSION"
2926 echo "Creating tag $VERSION with message:"
3027 echo "$MSG"
3128 git tag -a "$VERSION" -m "$MSG"
32- echo "MPYTHON_VERSION=$VERSION" >> $GITHUB_ENV
3329 - name : Publish tags
3430 run : git push --tags
3531
8783 and upload it to GitHub Release
8884 needs :
8985 - publish-to-pypi
90- - create-tag
91- env :
92- MPYTHON_VERSION : ${{ needs.create-tag.outputs.MPYTHON_VERSION }}
9386 runs-on : ubuntu-latest
9487
9588 permissions :
@@ -113,7 +106,7 @@ jobs:
113106 GITHUB_TOKEN : ${{ github.token }}
114107 run : |
115108 gh release create
116- "${{ env.MPYTHON_VERSION }} "
109+ "$GITHUB_REF_NAME "
117110 --repo "$GITHUB_REPOSITORY"
118111 --notes ""
119112 - name : Upload artifact signatures to GitHub Release
@@ -124,7 +117,7 @@ jobs:
124117 # sigstore-produced signatures and certificates.
125118 run : |
126119 gh release upload
127- "${{ env.MPYTHON_VERSION }} " dist/**
120+ "$GITHUB_REF_NAME " dist/**
128121 --repo "$GITHUB_REPOSITORY"
129122
130123 publish-to-testpypi :
You can’t perform that action at this time.
0 commit comments