We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b62bf7a commit 70b2983Copy full SHA for 70b2983
1 file changed
.github/workflows/publish.yml
@@ -0,0 +1,30 @@
1
+name: Publish Python Package
2
+
3
+on:
4
+ release:
5
+ types: [published]
6
7
+jobs:
8
+ deploy:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v3
12
13
+ - name: Set up Python
14
+ uses: actions/setup-python@v4
15
+ with:
16
+ python-version: '3.10'
17
18
+ - name: Install dependencies
19
+ run: |
20
+ python -m pip install --upgrade pip
21
+ pip install build twine
22
23
+ - name: Build package
24
+ run: python -m build
25
26
+ - name: Publish to PyPI
27
+ env:
28
+ TWINE_USERNAME: __token__
29
+ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
30
+ run: twine upload dist/*
0 commit comments