Skip to content

Commit

Permalink
Clean workflow step names
Browse files Browse the repository at this point in the history
  • Loading branch information
aymgal committed Apr 17, 2024
1 parent 086b5f4 commit 0395699
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Written following the guide:
# Modified from the original version of:
# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/

name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
name: Publish 📦 to PyPI and TestPyPI

on: push

jobs:
build:
name: Build distribution 📦
name: Build distribution
runs-on: ubuntu-latest

steps:
Expand All @@ -32,7 +32,7 @@ jobs:

publish-to-pypi:
name: >-
Publish Python 🐍 distribution 📦 to PyPI
Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs:
- build
Expand All @@ -44,17 +44,17 @@ jobs:
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- name: Download all the dists
- name: Download the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to PyPI
- name: Upload to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

github-release:
name: >-
Sign the Python 🐍 distribution 📦 with Sigstore
Sign the distribution with Sigstore
and upload them to GitHub Release
needs:
- publish-to-pypi
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
--repo '${{ github.repository }}'
publish-to-testpypi:
name: Publish Python 🐍 distribution 📦 to TestPyPI
name: Publish distribution to TestPyPI # unlike for PyPI, releases on any push on TestPyPI
needs:
- build
runs-on: ubuntu-latest
Expand All @@ -109,12 +109,12 @@ jobs:
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- name: Download all the dists
- name: Download the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to TestPyPI
- name: Upload to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

0 comments on commit 0395699

Please sign in to comment.