Skip to content

Commit

Permalink
chore: update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
codito authored Jan 21, 2024
1 parent 9cb7b49 commit 5a9fb31
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Publish Python 🐍 distribution πŸ“¦ to PyPI and TestPyPI
name: publish

on: push

jobs:
build:
name: Build distribution πŸ“¦
name: build πŸ“¦
runs-on: ubuntu-latest

steps:
Expand All @@ -25,8 +25,7 @@ jobs:
path: dist/

publish-to-pypi:
name: >-
Publish Python 🐍 distribution πŸ“¦ to PyPI
name: push pypi
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs:
- build
Expand All @@ -47,9 +46,7 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1

github-release:
name: >-
Sign the Python 🐍 distribution πŸ“¦ with Sigstore
and upload them to GitHub Release
name: sign
needs:
- publish-to-pypi
runs-on: ubuntu-latest
Expand Down

0 comments on commit 5a9fb31

Please sign in to comment.