Skip to content

Commit 30dff73

Browse files
authored
Update and rename build.yml to build_publish.yml
1 parent c0082d4 commit 30dff73

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,28 @@ jobs:
3838
with:
3939
name: wheels
4040
path: ./wheels/*.whl
41+
42+
publish:
43+
needs: build
44+
name: Publish to PyPI
45+
runs-on: ubuntu-latest
46+
47+
steps:
48+
- name: Set up Python
49+
uses: actions/setup-python@v2
50+
with:
51+
python-version: '3.x'
52+
- name: Install twine
53+
run: |
54+
python -m pip install --upgrade pip
55+
pip install twine
56+
- name: Download Artifacts
57+
uses: actions/download-artifact@v2
58+
with:
59+
name: wheels
60+
path: ./wheels
61+
- name: Publish
62+
env:
63+
TWINE_USERNAME: ${{ secrets.TPYPI_USERNAME }}
64+
TWINE_PASSWORD: ${{ secrets.TPYPI_PASSWORD }}
65+
run: twine upload --repository testpypi ./wheels/*

0 commit comments

Comments
 (0)