Skip to content

Commit

Permalink
pypi upload workflow maintenance (#5269)
Browse files Browse the repository at this point in the history
* also upload on tags

* don't run on commits on master [skip-ci]

* don't check for tags (releases are always on tags) [skip-ci]
  • Loading branch information
keewis authored May 6, 2021
1 parent f5e4fd5 commit 10648cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pypi-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
types:
- published
push:
branches:
- master
tags:
- 'v*'

jobs:
build-artifacts:
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
ls -ltrh
ls -ltrh dist
- name: Publish package to TestPyPI
if: github.event_name == 'push' || startsWith(github.event.ref, 'refs/tags/v')
if: github.event_name == 'push'
uses: pypa/gh-action-pypi-publish@v1.4.2
with:
user: __token__
Expand All @@ -72,7 +72,7 @@ jobs:
verbose: true

- name: Check uploaded package
if: github.event_name == 'push' || startsWith(github.event.ref, 'refs/tags/v')
if: github.event_name == 'push'
run: |
sleep 3
python -m pip install --upgrade pip
Expand Down

0 comments on commit 10648cb

Please sign in to comment.