Skip to content

Commit 18fbe1b

Browse files
authored
Refactor PyPI publish workflow steps
1 parent d612814 commit 18fbe1b

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

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

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -89,19 +89,20 @@ jobs:
8989
url: https://pypi.org/p/libcrypto
9090
permissions:
9191
id-token: write
92-
steps:
93-
- name: Download distribution artifacts
94-
uses: actions/download-artifact@v4
95-
with:
96-
name: python-package-distributions
97-
path: dist/
9892

99-
- name: Publish to PyPI
100-
uses: pypa/gh-action-pypi-publish@release/v1
101-
with:
102-
password: ${{ secrets.PYPI_TOKEN }}
103-
skip-existing: true
104-
verbose: true
93+
steps:
94+
# - name: Download distribution artifacts
95+
# uses: actions/download-artifact@v4
96+
# with:
97+
# name: python-package-distributions
98+
# path: dist/
99+
100+
- name: Publish package to PyPI
101+
env:
102+
TWINE_USERNAME: __token__
103+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
104+
run: |
105+
twine upload dist/*
105106
106107
create-github-release:
107108
needs: publish-to-pypi

0 commit comments

Comments
 (0)