Skip to content

Commit 08837cb

Browse files
committed
ci: Simplify workflow names
Signed-off-by: Nick Diego Yamane <[email protected]>
1 parent 2bc1004 commit 08837cb

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
1+
name: Publish to PyPI and TestPyPI
22

33
on: push
44

55
jobs:
66
build:
7-
name: Build distribution 📦
7+
name: Build
88
runs-on: ubuntu-latest
99

1010
steps:
@@ -16,12 +16,8 @@ jobs:
1616
with:
1717
python-version: "3.x"
1818
- name: Install pypa/build
19-
run: >-
20-
python3 -m
21-
pip install
22-
build
23-
--user
24-
- name: Build a binary wheel and a source tarball
19+
run: python3 -m pip install build --user
20+
- name: Build binary wheel and source tarball
2521
run: python3 -m build
2622
- name: Store the distribution packages
2723
uses: actions/upload-artifact@v4
@@ -30,8 +26,7 @@ jobs:
3026
path: dist/
3127

3228
publish-to-pypi:
33-
name: >-
34-
Publish Python 🐍 distribution 📦 to PyPI
29+
name: Publish package to PyPI
3530
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
3631
needs:
3732
- build
@@ -48,13 +43,11 @@ jobs:
4843
with:
4944
name: python-package-distributions
5045
path: dist/
51-
- name: Publish distribution 📦 to PyPI
46+
- name: Publish actifacts to PyPI
5247
uses: pypa/gh-action-pypi-publish@release/v1
5348

5449
github-release:
55-
name: >-
56-
Sign the Python 🐍 distribution 📦 with Sigstore
57-
and upload them to GitHub Release
50+
name: Sign and upload to GitHub Release
5851
needs:
5952
- publish-to-pypi
6053
runs-on: ubuntu-latest
@@ -69,7 +62,7 @@ jobs:
6962
with:
7063
name: python-package-distributions
7164
path: dist/
72-
- name: Sign the dists with Sigstore
65+
- name: Sign the dists
7366
uses: sigstore/[email protected]
7467
with:
7568
inputs: >-
@@ -95,7 +88,7 @@ jobs:
9588
--repo "$GITHUB_REPOSITORY"
9689
9790
publish-to-testpypi:
98-
name: Publish Python 🐍 distribution 📦 to TestPyPI
91+
name: Publish to TestPyPI
9992
needs:
10093
- build
10194
runs-on: ubuntu-latest
@@ -113,7 +106,7 @@ jobs:
113106
with:
114107
name: python-package-distributions
115108
path: dist/
116-
- name: Publish distribution 📦 to TestPyPI
109+
- name: Publish artifacts to TestPyPI
117110
uses: pypa/gh-action-pypi-publish@release/v1
118111
with:
119112
repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)