Skip to content

Commit

Permalink
Use trusted publishing for releases.
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-alec committed Jan 10, 2025
1 parent 75d584f commit c830947
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,12 @@ jobs:
name: Publish to pypi
if: github.event_name == 'release'
needs: [test_linux_wheels, test_linux_aarch64_wheels, test_macos_x86_wheels, test_macos_arm64_wheels, test_Windows_wheels]
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
environmemt:
name: release
url: https://pypi.org/p/pytket
permissions:
id-token: write
steps:
- name: Download all wheels
uses: actions/download-artifact@v4
Expand All @@ -355,7 +360,3 @@ jobs:
for w in `find wheelhouse/ -type f -name "*.whl"` ; do cp $w dist/ ; done
- name: Publish wheels
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_PYTKET_API_TOKEN }}
verbose: true

0 comments on commit c830947

Please sign in to comment.