Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: Publish Python Package

on:
pull_request:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+*" # Tag will be used for version via setuptools_scm, should match version in HISTORY.txt
Expand Down Expand Up @@ -42,12 +43,14 @@ jobs:
run: python -m build

- name: Publish to PyPI
if: github.ref_type == 'tag'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload dist/*

# - name: Publish to Test PyPI
# if: github.ref_type == 'tag'
# env:
# TWINE_USERNAME: __token__
# TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
Expand Down