mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 06:07:26 +02:00
Update wheels to Trusted Publisher
This commit is contained in:
@@ -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/' }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user