Skip to content

Commit

Permalink
optimize workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielburnworth authored Sep 13, 2024
1 parent 8a63779 commit 9059f28
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Python distribution to PyPI and TestPyPI
name: Publish package

on: push

Expand All @@ -24,7 +24,7 @@ jobs:
path: dist/

publish-to-pypi:
name: Publish Python distribution to PyPI
name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags/')
needs:
- build
Expand All @@ -45,7 +45,7 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1

github-release:
name: Upload the Python distribution to GitHub Release
name: Create GitHub Release
needs:
- publish-to-pypi
runs-on: ubuntu-latest
Expand Down Expand Up @@ -83,7 +83,8 @@ jobs:
--repo '${{ github.repository }}'
publish-to-testpypi:
name: Publish Python distribution to TestPyPI
name: Publish to TestPyPI
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
needs:
- build
runs-on: ubuntu-latest
Expand Down

0 comments on commit 9059f28

Please sign in to comment.