Skip to content

Commit e27d477

Browse files
👷 Add action to publish to pypi.
1 parent b1c3591 commit e27d477

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish Poetry Package to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
id-token: write
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
- name: Install Poetry
19+
uses: packetcoders/action-setup-cache-python-poetry@main
20+
with:
21+
python-version: 3.12
22+
poetry-version: 1.8.3
23+
- name: Publish to PyPI using OIDC
24+
run: |
25+
poetry config pypi-token.pypi ${{ secrets.PYPI_PUBLISH_TOKEN }}
26+
poetry publish --build

0 commit comments

Comments
 (0)