mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 15:38:55 +01:00
Use OIDC TrustedPublisher to publish khoj python package to PyPi
This commit is contained in:
parent
3417164ec2
commit
a374288cea
1 changed files with 2 additions and 2 deletions
4
.github/workflows/pypi.yml
vendored
4
.github/workflows/pypi.yml
vendored
|
@ -22,6 +22,8 @@ jobs:
|
|||
publish:
|
||||
name: Publish Python Package to PyPI
|
||||
runs-on: ubuntu-20.04
|
||||
permissions:
|
||||
id-token: write
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
|
@ -60,5 +62,3 @@ jobs:
|
|||
- name: 📦 Publish Python Package to PyPI
|
||||
if: startsWith(github.ref, 'refs/tags') || github.ref == 'refs/heads/master'
|
||||
uses: pypa/gh-action-pypi-publish@v1.8.14
|
||||
with:
|
||||
password: ${{ secrets.PYPI_API_KEY }}
|
||||
|
|
Loading…
Reference in a new issue