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 817a406 commit 56d2c9dCopy full SHA for 56d2c9d
.github/workflows/publish.yml
@@ -0,0 +1,33 @@
1
+
2
+name: Upload Python Package
3
+on: [push, pull_request]
4
5
+#on:
6
+# release:
7
+# types: [created]
8
9
+jobs:
10
+ publish:
11
+ needs: build
12
+ name: Publish to PyPI
13
+ runs-on: ubuntu-latest
14
15
+ steps:
16
+ - name: Set up Python
17
+ uses: actions/setup-python@v2
18
+ with:
19
+ python-version: '3.x'
20
+ - name: Install twine
21
+ run: |
22
+ python -m pip install --upgrade pip
23
+ pip install twine
24
+ - name: Download Artifacts
25
+ uses: actions/download-artifact@v2
26
27
+ name: wheels
28
+ path: ./wheels
29
+ - name: Publish
30
+ env:
31
+ TWINE_USERNAME: ${{ secrets.TPYPI_USERNAME }}
32
+ TWINE_PASSWORD: ${{ secrets.TPYPI_PASSWORD }}
33
+ run: twine upload --repository testpypi ./wheels/*
0 commit comments