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 834d9c5 commit ffbf99eCopy full SHA for ffbf99e
.github/workflows/publish.yml
@@ -0,0 +1,31 @@
1
+name: Publish Python Package
2
+
3
+on:
4
+ release:
5
+ types: [published]
6
7
+jobs:
8
+ build-and-publish:
9
+ runs-on: ubuntu-latest
10
11
+ steps:
12
+ - uses: actions/checkout@v4
13
14
+ - name: Set up Python
15
+ uses: actions/setup-python@v5
16
+ with:
17
+ python-version: "3.11"
18
19
+ - name: Install build tools
20
+ run: |
21
+ python -m pip install --upgrade pip
22
+ pip install build twine
23
24
+ - name: Build package
25
+ run: python -m build
26
27
+ - name: Publish to PyPI
28
+ env:
29
+ TWINE_USERNAME: __token__
30
+ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
31
+ run: twine upload dist/*
0 commit comments