Skip to content

Commit b0390a7

Browse files
try out pypi publishing via github action
1 parent 516a1b8 commit b0390a7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ jobs:
8383
runs-on: ubuntu-latest
8484
timeout-minutes: 10
8585
needs: release
86+
environment:
87+
name: pypi
88+
url: https://pypi.org/p/mex-release
89+
permissions:
90+
id-token: write # IMPORTANT: mandatory for trusted publishing
8691
steps:
8792
- name: Checkout repo
8893
uses: actions/checkout@v4
@@ -117,3 +122,6 @@ jobs:
117122
for filename in dist/*; do
118123
gh release upload ${{ needs.release.outputs.tag }} ${filename};
119124
done
125+
126+
- name: Publish distribution 📦 to PyPI
127+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)