We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfbd342 commit 155b03bCopy full SHA for 155b03b
1 file changed
.github/workflows/publish.yml
@@ -0,0 +1,25 @@
1
+name: Publish to PyPI
2
+
3
+on:
4
+ release:
5
+ types: [published]
6
7
+jobs:
8
+ pypi-publish:
9
+ name: Build and publish to PyPI
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ id-token: write # Mandatory for Trusted Publishing
13
+ contents: read
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - name: Set up Python
17
+ uses: actions/setup-python@v5
18
+ with:
19
+ python-version: "3.10"
20
+ - name: Install Poetry
21
+ run: pip install poetry
22
+ - name: Build package
23
+ run: poetry build
24
+ - name: Publish package
25
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments