Skip to content
Closed
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
10 changes: 10 additions & 0 deletions .github/workflows/release-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ name: PyPI Release
on: # Trigger the workflow on push or pull request, but only for the main branch
push:
branches: [main]
pull_request:
branches: [main]
release:
types: [published]

Expand All @@ -28,6 +30,14 @@ jobs:
- name: Check package
run: twine check dist/*

- name: Install pip
run: |
pip install -U pip
pip list
- name: Install package
run: |
pip install dist/*.tar.gz

# We do this, since failures on test.pypi aren't that bad
- name: Publish to Test PyPI
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
Expand Down
Loading