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.
2 parents 7bc1cf2 + e26f6b1 commit 3e1c5f3Copy full SHA for 3e1c5f3
.github/workflows/upload-package.yml
@@ -0,0 +1,34 @@
1
+name: Upload Python Package
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
8
+jobs:
9
+ deploy:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v3
13
14
+ - name: Set up Python
15
+ uses: actions/setup-python@v3
16
+ with:
17
+ python-version: '3.8'
18
19
+ - name: Install dependencies
20
+ run: |
21
+ python -m pip install --upgrade pip
22
+ pip install setuptools wheel twine
23
24
+ - name: Build and check package
25
26
+ python setup.py sdist bdist_wheel
27
+ twine check dist/*
28
29
+ - name: Upload to PyPi
30
+ uses: pypa/[email protected]
31
32
+ user: __token__
33
+ password: ${{ secrets.PYPI_API_TOKEN }}
34
0 commit comments