Update `create-release.yml` workflow: publish releases with a Trusted Publisher.
parent
3000c9024e
commit
a7e8c4da09
|
|
@ -8,6 +8,9 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
# environment: release
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|
@ -38,5 +41,5 @@ jobs:
|
||||||
- name: Publish on PyPI
|
- name: Publish on PyPI
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
with:
|
with:
|
||||||
packages_dir: dist/
|
packages-dir: dist/
|
||||||
password: ${{ secrets.WORKFLOWS_PUBLISH_TO_PYPI_TOKEN }}
|
# password: ${{ secrets.WORKFLOWS_PUBLISH_TO_PYPI_TOKEN }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue