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:
|
upload_wheels:
|
||||||
name: Upload Wheels
|
name: Upload Wheels
|
||||||
runs-on: ubuntu-latest
|
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
|
needs: build_wheels
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
|
@ -132,6 +137,3 @@ jobs:
|
||||||
mv *.whl ./dist
|
mv *.whl ./dist
|
||||||
- name: Publish
|
- name: Publish
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
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