Skip to content

Commit 60682f0

Browse files
authored
Create publish.yml
1 parent 001c337 commit 60682f0

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
name: Upload Python Package
3+
on: [push, pull_request]
4+
#on:
5+
# release:
6+
# types: [created]
7+
8+
jobs:
9+
publish:
10+
name: Publish to PyPI
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Set up Python
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: '3.x'
18+
- name: Install twine
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install twine
22+
- name: Download Artifacts
23+
uses: actions/download-artifact@v2
24+
with:
25+
name: wheels
26+
path: ./wheels
27+
- name: Publish
28+
env:
29+
TWINE_USERNAME: ${{ secrets.TPYPI_USERNAME }}
30+
TWINE_PASSWORD: ${{ secrets.TPYPI_PASSWORD }}
31+
run: twine upload --repository testpypi ./wheels/*

0 commit comments

Comments
 (0)