We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a8465b commit 2c9d8b1Copy full SHA for 2c9d8b1
.github/workflows/python-publish.yml
@@ -0,0 +1,34 @@
1
+name: Upload Python Package to PyPI
2
+
3
+on:
4
+ release:
5
+ types: [published]
6
7
+permissions:
8
+ contents: read
9
10
+jobs:
11
+ deploy:
12
+ runs-on: ubuntu-latest
13
14
+ steps:
15
+ - uses: actions/checkout@v4
16
17
+ - name: Set up Python
18
+ uses: actions/setup-python@v5
19
+ with:
20
+ python-version: '3.x'
21
22
+ - name: Install dependencies
23
+ run: |
24
+ python -m pip install --upgrade pip
25
+ pip install build
26
27
+ - name: Build package
28
+ run: python -m build
29
30
+ - name: Publish to PyPI
31
+ uses: pypa/gh-action-pypi-publish@release/v1
32
33
+ user: __token__
34
+ password: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments