Skip to content

Commit

Permalink
feat: extend publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Fovty committed May 16, 2024
1 parent d3f8426 commit 6483686
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/build-publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,18 @@ jobs:
with:
name: dist
path: dist/*

# Publishing to PyPI. Necessary?
- name: Publish to Test PyPI
env:
TWINE_USERNAME: ${{ secrets.TEST_PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }}
run: |
pip install twine
twine upload --repository testpypi dist/*
# - name: Publish to PyPI
# uses: pypa/gh-action-pypi-publish@master
# with:
# user: __token__
# password: ${{ secrets.PYPI_API_TOKEN }}
# if: startsWith(github.ref, 'refs/tags/')
# env:
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
# run: |
# pip install twine
# twine upload dist/*

0 comments on commit 6483686

Please sign in to comment.