Skip to content

Commit

Permalink
change pipeline to publish to PyPi
Browse files Browse the repository at this point in the history
  • Loading branch information
darodi committed Jan 14, 2023
1 parent 9ee375c commit cceb9cf
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 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:
push:
Expand Down Expand Up @@ -37,12 +37,16 @@ jobs:
- name: Build Dist
run: |
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
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
verbose: true
print_hash: true
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit cceb9cf

Please sign in to comment.