Skip to content

Commit

Permalink
Switch to PyPI publishing via a trusted publisher.
Browse files Browse the repository at this point in the history
Change-Id: Ie94c5e6931f8fa70f238c9a5360874ff8833876a
Reviewed-on: https://code-review.googlesource.com/c/re2/+/62972
Reviewed-by: Perry Lorier <perryl@google.com>
Reviewed-by: Paul Wankadia <junyer@google.com>
  • Loading branch information
junyer committed Apr 9, 2024
1 parent e76b306 commit 3c7e162
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ jobs:
- wheel-linux
- wheel-macos
- wheel-windows
permissions:
contents: read
# Required for PyPI publishing.
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
Expand Down Expand Up @@ -224,5 +228,4 @@ jobs:
- if: inputs.build >= 1
uses: pypa/gh-action-pypi-publish@v1.8.14
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages-dir: python/dist

0 comments on commit 3c7e162

Please sign in to comment.