Skip to content

Commit

Permalink
Use OIDC to authenticate to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
mgyucht committed Oct 5, 2023
1 parent 8a76f1b commit 7034d0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ jobs:
publish:
runs-on: ubuntu-latest
environment: release-test
permissions:
id-token: write
steps:
- uses: actions/checkout@v3

Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v3

Expand All @@ -25,6 +28,4 @@ jobs:
dist/databricks-*.tar.gz
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
name: Publish package distributions to PyPI

0 comments on commit 7034d0e

Please sign in to comment.