Skip to content

Commit 4a2f4a8

Browse files
authored
fix: correct chain of logic for publish workflow (#63)
* fix: correct chain of logic for publish workflow * Update publish-pypi.yml * Add verbose flag to PyPI publish and update build commands
1 parent cd606ab commit 4a2f4a8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jobs:
1212
name: test
1313
url: https://test.pypi.org/project/ultraplot/
1414
runs-on: ubuntu-latest
15-
if: github.event_name == 'push'
1615
permissions:
1716
id-token: write
1817
contents: read
@@ -31,6 +30,7 @@ jobs:
3130
uses: pypa/gh-action-pypi-publish@release/v1
3231
with:
3332
repository-url: https://test.pypi.org/legacy/
33+
verbose: true
3434

3535
publish-prod:
3636
name: Publish to PyPI
@@ -39,7 +39,7 @@ jobs:
3939
name: prod
4040
url: https://pypi.org/project/ultraplot/
4141
runs-on: ubuntu-latest
42-
if: github.event_name == 'release' || (github.event_name == 'push' && needs.publish-pypi-test.result == 'success')
42+
if: github.event_name == 'release'
4343
permissions:
4444
id-token: write
4545
contents: read
@@ -56,3 +56,5 @@ jobs:
5656
python -m build
5757
- name: Publish to PyPI
5858
uses: pypa/gh-action-pypi-publish@release/v1
59+
with:
60+
verbose: true

0 commit comments

Comments
 (0)