File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 13
13
permissions :
14
14
contents : write
15
15
id-token : write
16
+ outputs :
17
+ MPYTHON_VERSION : ${{ steps.getversion.outputs.MPYTHON_VERSION }}
16
18
steps :
17
19
- name : Check out package
18
20
uses : actions/checkout@v4
26
28
echo "Creating tag $VERSION with message:"
27
29
echo "$MSG"
28
30
git tag -a "$VERSION" -m "$MSG"
31
+ echo "MPYTHON_VERSION=$VERSION" >> "$GITHUB_OUTPUT"
29
32
- name : Publish tags
30
33
run : git push --tags
31
34
83
86
and upload it to GitHub Release
84
87
needs :
85
88
- publish-to-pypi
89
+ - create-tag
86
90
runs-on : ubuntu-latest
87
91
88
92
permissions :
@@ -106,7 +110,7 @@ jobs:
106
110
GITHUB_TOKEN : ${{ github.token }}
107
111
run : |
108
112
gh release create
109
- "$GITHUB_REF_NAME "
113
+ "${{ needs.create-tag.outputs.MPYTHON_VERSION }} "
110
114
--repo "$GITHUB_REPOSITORY"
111
115
--notes ""
112
116
- name : Upload artifact signatures to GitHub Release
@@ -117,7 +121,7 @@ jobs:
117
121
# sigstore-produced signatures and certificates.
118
122
run : |
119
123
gh release upload
120
- "$GITHUB_REF_NAME " dist/**
124
+ "${{ needs.create-tag.outputs.MPYTHON_VERSION }} " dist/**
121
125
--repo "$GITHUB_REPOSITORY"
122
126
123
127
publish-to-testpypi :
You can’t perform that action at this time.
0 commit comments