Skip to content

Commit 02f8647

Browse files
authored
PyPI: switch to trusted publishing and generate attestations (#257)
1 parent 907223b commit 02f8647

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,13 @@ jobs:
519519

520520
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
521521

522+
environment:
523+
name: pypi
524+
url: https://pypi.org/p/rawpy
525+
526+
permissions:
527+
id-token: write
528+
522529
steps:
523530
- name: Download wheels from artifact storage
524531
uses: actions/download-artifact@v4
@@ -530,10 +537,8 @@ jobs:
530537
- name: Setup Python
531538
uses: actions/setup-python@v5
532539

533-
- name: Upload wheels to PyPI
534-
run: |
535-
pip install twine
536-
twine upload -u __token__ -p ${{ secrets.PYPI_TOKEN }} --skip-existing dist/*
540+
- name: Publish package distributions to PyPI
541+
uses: pypa/gh-action-pypi-publish@release/v1
537542

538543
publish-docs:
539544
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)