deploy job divided to discrete steps for easier reading
This commit is contained in:
1 parent
906d22da3d
commit
30490d89f5
1 file changed
+7
-7
@@ -4,9 +4,6 @@
|
|||||||
name: Testing Upload Python Package to TEST.PyPi.org
|
name: Testing Upload Python Package to TEST.PyPi.org
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# release:
|
|
||||||
# types: [created]
|
|
||||||
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- develop
|
- develop
|
||||||
@@ -29,13 +26,16 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install setuptools wheel twine
|
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:
|
env:
|
||||||
TWINE_USERNAME: ${{ secrets.TWINE_TEST_USERNAME }}
|
TWINE_USERNAME: ${{ secrets.TWINE_TEST_USERNAME }}
|
||||||
TWINE_PASSWORD: ${{ secrets.TWINE_TEST_PASSWORD }}
|
TWINE_PASSWORD: ${{ secrets.TWINE_TEST_PASSWORD }}
|
||||||
TWINE_REPOSITORY: ${{ secrets.TWINE_TEST_REPOSITORY }}
|
TWINE_REPOSITORY: ${{ secrets.TWINE_TEST_REPOSITORY }}
|
||||||
run: |
|
run: |
|
||||||
python setup.py sdist bdist_wheel
|
|
||||||
twine check dist/*
|
|
||||||
twine upload --verbose --non-interactive --disable-progress-bar --skip-existing dist/*
|
twine upload --verbose --non-interactive --disable-progress-bar --skip-existing dist/*
|
||||||
|
|
||||||
Reference in new issue
Block a user