Skip to content

Commit

Permalink
Trigger PyPI packaging via github releases
Browse files Browse the repository at this point in the history
  • Loading branch information
sprenger committed Dec 13, 2021
1 parent fb7a603 commit c9bf89b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Create PYPI Release
on:
push:
# Pattern matched against refs/tags
tags:
- '*' # Push events to every tag not containing /
release:
types: [published]

jobs:
build-n-publish:
Expand Down Expand Up @@ -35,8 +33,6 @@ jobs:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution to PyPI
# only consider version tags starting with 'v' and not alpha or beta releases
if: startsWith(github.ref, 'refs/tags/v') & ~{contains(github.ref, '-a') || contains(github.ref, '-b')}
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit c9bf89b

Please sign in to comment.