deploy job divided to discrete steps for easier reading

This commit is contained in:
Petr Klíma committed 2020-10-09 06:43:53 +00:00
1 parent 906d22da3d
commit 30490d89f5
1 file changed
+7 -7
+7 -7
View File
@@ -4,9 +4,6 @@
name: Testing Upload Python Package to TEST.PyPi.org
on:
# release:
# types: [created]
push:
branches:
- develop
@@ -29,13 +26,16 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
- name: Build
run: |
python setup.py sdist bdist_wheel
- name: Check
run: |
twine check dist/*
- name: Publish
env:
TWINE_USERNAME: ${{ secrets.TWINE_TEST_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_TEST_PASSWORD }}
TWINE_REPOSITORY: ${{ secrets.TWINE_TEST_REPOSITORY }}
run: |
python setup.py sdist bdist_wheel
twine check dist/*
twine upload --verbose --non-interactive --disable-progress-bar --skip-existing dist/*