We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63f6767 commit b5ef7c2Copy full SHA for b5ef7c2
.github/workflows/python-publish.yml
@@ -0,0 +1,33 @@
1
+# This workflow will upload a Python Package using Twine when a release is created
2
+
3
+name: Upload Python Package
4
5
+on:
6
+ release:
7
+ types: [published]
8
9
+permissions:
10
+ contents: read
11
12
+jobs:
13
+ deploy:
14
15
+ runs-on: ubuntu-latest
16
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - name: Set up Python
20
+ uses: actions/setup-python@v3
21
+ with:
22
+ python-version: '3.12'
23
+ - name: Install dependencies
24
+ run: |
25
+ python -m pip install --upgrade pip
26
+ pip install poetry
27
+ poetry install --with dev
28
+ - name: Build package
29
+ run: poetry build
30
+ - name: Publish package
31
32
+ poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
33
+ poetry publish
0 commit comments