Skip to content

Commit

Permalink
Update python_publish_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-kipawa authored Nov 13, 2024
1 parent 5729918 commit c6f32a1
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/python_publish_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,25 @@ jobs:
pytest -v -m "not license_required and not slow"
- name: Build package
run: python -m build
run: python -m build --wheel

- name: Archive distributions
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/

- name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
# Doesn't run on Windows ☹️
#- name: Publish package distributions to TestPyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# repository-url: https://test.pypi.org/legacy/

- name: Publish
env:
TWINE_USERNAME: '__token__'
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }}
run: |
twine upload dist/*.whl

0 comments on commit c6f32a1

Please sign in to comment.