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 03f0c0a commit d27dab9Copy full SHA for d27dab9
.github/workflows/python-publish.yml
@@ -0,0 +1,35 @@
1
+name: Upload Python Package
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
+ - name: Checkout code
16
+ uses: actions/checkout@v4
17
18
+ - name: Set up Python
19
+ uses: actions/setup-python@v3
20
+ with:
21
+ python-version: '3.10'
22
23
+ - name: Install dependencies
24
+ run: |
25
+ python -m pip install --upgrade pip
26
+ pip install --upgrade setuptools setuptools_scm[toml] build
27
28
+ - name: Build package
29
+ run: python -m build
30
31
+ - name: Publish package
32
+ uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
33
34
+ user: __token__
35
+ password: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments