Skip to content

Commit 2af7d58

Browse files
committed
chore(release): auto publish to pypi after release
1 parent fb96e54 commit 2af7d58

File tree

2 files changed

+11
-39
lines changed

2 files changed

+11
-39
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/release-please.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,15 @@ jobs:
2424
target-branch: main
2525

2626
build:
27-
name: upload wheel
27+
name: upload wheel & publish to pypi
2828
runs-on: ubuntu-latest
2929
needs: release-please
3030
if: ${{ needs.release-please.outputs.releases_created == 'true' && needs.release-please.outputs.tag_name != '' }}
31+
32+
environment: pypi
33+
permissions:
34+
id-token: write
35+
3136
strategy:
3237
fail-fast: false
3338
matrix:
@@ -58,3 +63,8 @@ jobs:
5863
file: dist/memu_*.whl
5964
tag: ${{ needs.release-please.outputs.tag_name }}
6065
file_glob: true
66+
67+
- name: Publish to PyPI
68+
uses: pypa/gh-action-pypi-publish@release/v1
69+
with:
70+
packages-dir: dist/

0 commit comments

Comments
 (0)