mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-11 13:40:53 +00:00
Update wheels to Trusted Publisher
This commit is contained in:
parent
7537a49f0d
commit
86ef7f7ede
1 changed files with 5 additions and 3 deletions
8
.github/workflows/wheels.yml
vendored
8
.github/workflows/wheels.yml
vendored
|
@ -119,6 +119,11 @@ jobs:
|
|||
upload_wheels:
|
||||
name: Upload Wheels
|
||||
runs-on: ubuntu-latest
|
||||
# Specifying a GitHub environment is optional, but strongly encouraged
|
||||
environment: pypi
|
||||
permissions:
|
||||
# IMPORTANT: this permission is mandatory for Trusted Publishing
|
||||
id-token: write
|
||||
needs: build_wheels
|
||||
steps:
|
||||
- uses: actions/download-artifact@v4
|
||||
|
@ -132,6 +137,3 @@ jobs:
|
|||
mv *.whl ./dist
|
||||
- name: Publish
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
with:
|
||||
password: ${{ secrets.PYPI_TOKEN }}
|
||||
repository-url: ${{ vars.PYPI_INDEX || 'https://upload.pypi.org/legacy/' }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue