Clean up workflow file

This commit is contained in:
Micha Albert 2025-02-17 17:25:01 -05:00
parent 2d0b25c16c
commit 6b40d533d2

14
.github/pypi.yml vendored
View file

@ -1,6 +1,8 @@
name: Publish Python distribution to PyPI and TestPyPI
on: push
on:
- push
- workflow_dispatch
jobs:
build:
@ -31,7 +33,7 @@ jobs:
publish-to-pypi:
name: >-
Publish Python 🐍 distribution 📦 to PyPI
Publish Python distribution to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs:
- build
@ -48,12 +50,12 @@ jobs:
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to PyPI
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
github-release:
name: >-
Sign the Python 🐍 distribution 📦 with Sigstore
Sign the Python distribution with Sigstore
and upload them to GitHub Release
needs:
- publish-to-pypi
@ -95,7 +97,7 @@ jobs:
--repo "$GITHUB_REPOSITORY"
publish-to-testpypi:
name: Publish Python 🐍 distribution 📦 to TestPyPI
name: Publish Python distribution to TestPyPI
needs:
- build
runs-on: ubuntu-latest
@ -113,7 +115,7 @@ jobs:
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to TestPyPI
- name: Publish distribution to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/