-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pypi upload workflow maintenance (#5269)
* 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
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ on: | |
types: | ||
- published | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
build-artifacts: | ||
|
@@ -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/[email protected] | ||
with: | ||
user: __token__ | ||
|
@@ -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 | ||
|