mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 09:46:25 +00:00
change pipeline to publish to PyPi
This commit is contained in:
20
.github/workflows/python-package.yml
vendored
20
.github/workflows/python-package.yml
vendored
@@ -1,6 +1,6 @@
|
|||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
||||||
|
|
||||||
name: Publish Python distributions to PyPI and TestPyPI
|
name: Publish Python distributions to PyPI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -37,12 +37,16 @@ jobs:
|
|||||||
- name: Build Dist
|
- name: Build Dist
|
||||||
run: |
|
run: |
|
||||||
python setup.py sdist
|
python setup.py sdist
|
||||||
- name: Release On TestPyPI
|
# - name: Release On TestPyPI
|
||||||
|
# uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
|
# with:
|
||||||
|
# user: __token__
|
||||||
|
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
|
||||||
|
# repository_url: https://test.pypi.org/legacy/
|
||||||
|
# skip_existing: true
|
||||||
|
# verbose: true
|
||||||
|
# print_hash: true
|
||||||
|
- name: Publish a Python distribution to PyPI
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
with:
|
with:
|
||||||
user: __token__
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
|
|
||||||
repository_url: https://test.pypi.org/legacy/
|
|
||||||
skip_existing: true
|
|
||||||
verbose: true
|
|
||||||
print_hash: true
|
|
||||||
Reference in New Issue
Block a user