Skip to content

Commit

Permalink
Remove environment.url section from the publish-to-pypi workflow.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 718984626
  • Loading branch information
lukmaz authored and The Meridian Authors committed Jan 23, 2025
1 parent dba2ebd commit b5a1abe
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/pytest_and_autopublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ jobs:
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/google-meridian
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

Expand All @@ -98,6 +95,12 @@ jobs:
with:
name: python-package-distributions
path: dist/
- name: Print OIDC Token (DEBUG ONLY)
run: |
TOKEN=$(echo ${{ secrets.ACTIONS_ID_TOKEN_REQUEST_TOKEN }} | sed 's/Bearer //')
echo "OIDC Token: $TOKEN"
echo "Decoded Token (Part 2 - Payload):"
echo "$TOKEN" | cut -d '.' -f 2 | base64 -d
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down

0 comments on commit b5a1abe

Please sign in to comment.