Skip to content

Commit

Permalink
Unify PyPI releases with GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
nfx authored Jul 11, 2024
1 parent d779604 commit 65790c8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ on:
jobs:
release:
runs-on: ubuntu-latest
environment: release
permissions:
# Used to authenticate to PyPI via OIDC and sign the release's artifacts with sigstore-python.
id-token: write
# Used to attach signing artifacts to the published release.
contents: write

steps:

# The first step is obviously to check out the repository
Expand Down Expand Up @@ -52,6 +59,4 @@ jobs:
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.LABS_PYPI_TOKEN }}
packages_dir: python/dist/

0 comments on commit 65790c8

Please sign in to comment.