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