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