Skip to content

Commit 2243b91

Browse files
authored
Update publish-to-pypi.yml
1 parent 25e7a90 commit 2243b91

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@ jobs:
1313
permissions:
1414
contents: write
1515
id-token: write
16+
outputs:
17+
MPYTHON_VERSION: ${{ steps.getversion.outputs.MPYTHON_VERSION }}
1618
steps:
1719
- name: Check out package
1820
uses: actions/checkout@v4
1921
- name: Get package version
22+
id: getversion
2023
run: |
2124
VERSION=$(sed -n 's/^version = "\(.*\)"/\1/p' pyproject.toml)
2225
echo "pyproject.toml version: $VERSION"
@@ -84,6 +87,9 @@ jobs:
8487
and upload it to GitHub Release
8588
needs:
8689
- publish-to-pypi
90+
- create-tag
91+
env:
92+
MPYTHON_VERSION: ${{ needs.create-tag.outputs.MPYTHON_VERSION }}
8793
runs-on: ubuntu-latest
8894

8995
permissions:

0 commit comments

Comments
 (0)