We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df673b9 commit 5f042eaCopy full SHA for 5f042ea
.github/workflows/publish.yml
@@ -0,0 +1,34 @@
1
+name: Publish Python 🐍 distributions 📦 to PyPI
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - 'v*' # Only run on version tags
7
8
+permissions:
9
+ id-token: write # Required for OIDC
10
+ contents: read
11
12
+jobs:
13
+ build-and-publish:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v4
17
18
+ - name: Set up Python
19
+ uses: actions/setup-python@v5
20
+ with:
21
+ python-version: '3.9'
22
23
+ - name: Install Poetry
24
+ run: pip install poetry
25
26
+ - name: Install dependencies
27
+ run: poetry install --no-root
28
29
+ - name: Build package
30
+ run: poetry build
31
32
+ - name: Publish to PyPI
33
+ uses: pypa/gh-action-pypi-publish@release/v1
34
.github/workflows/release.yml
0 commit comments