Skip to content

Commit 56d2c9d

Browse files
authored
Create publish.yml
1 parent 817a406 commit 56d2c9d

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
with:
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

Comments
 (0)