Skip to content

Commit 8d106fa

Browse files
committed
tweaks to release gh
1 parent ef67201 commit 8d106fa

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ env:
3434
jobs:
3535

3636
build:
37-
name: Build distribution 📦
38-
if: startsWith(github.ref, 'refs/tags/') # only publish on tag pushes
37+
name: Build Package
3938
runs-on: ubuntu-latest
4039

4140
steps:
@@ -56,10 +55,8 @@ jobs:
5655
path: dist/
5756

5857
publish-to-pypi:
59-
name: >-
60-
Publish Python 🐍 distribution 📦 to PyPI
61-
if: startsWith(github.ref, 'refs/tags/') # only publish on tag pushes
62-
#if: ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.pypi == 'true') || github.event_name != 'workflow_dispatch' }}
58+
name: Publish to PyPI
59+
if: ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.pypi == 'true') || github.event_name != 'workflow_dispatch' }}
6360
needs:
6461
- build
6562
runs-on: ubuntu-latest
@@ -78,9 +75,7 @@ jobs:
7875
uses: pypa/gh-action-pypi-publish@release/v1.10
7976

8077
github-release:
81-
name: >-
82-
Sign the Python 🐍 distribution 📦 with Sigstore
83-
and upload them to GitHub Release
78+
name: Publish GitHub Release
8479
if: ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.github == 'true') || github.event_name != 'workflow_dispatch' }}
8580
needs:
8681
- publish-to-pypi
@@ -122,7 +117,7 @@ jobs:
122117
--repo '${{ github.repository }}'
123118
124119
publish-to-testpypi:
125-
name: Publish Python 🐍 distribution 📦 to TestPyPI
120+
name: Publish to TestPyPI
126121
if: ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.testpypi == 'true') || github.event_name != 'workflow_dispatch' }}
127122
needs:
128123
- build

0 commit comments

Comments
 (0)