Skip to content

Commit 0a53cea

Browse files
authored
Refactor GitHub Actions workflow for PyPI publishing
1 parent 36feb8a commit 0a53cea

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,9 @@ jobs:
7070
twine check dist/*
7171
7272
publish-to-pypi:
73-
needs: build
7473
name: Publish to PyPI
74+
needs: build
7575
runs-on: ubuntu-latest
76-
environment:
77-
name: pypi
78-
url: https://pypi.org/p/libcrypto
79-
permissions:
80-
id-token: write
8176
steps:
8277
- name: Download distribution artifacts
8378
uses: actions/download-artifact@v4
@@ -93,10 +88,10 @@ jobs:
9388
verbose: true
9489

9590
create-github-release:
96-
needs: publish-to-pypi
9791
name: Create GitHub Release
92+
needs: publish-to-pypi
9893
runs-on: ubuntu-latest
99-
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push'
94+
if: github.event_name == 'workflow_dispatch'
10095
permissions:
10196
contents: write
10297
steps:

0 commit comments

Comments
 (0)