Use OIDC TrustedPublisher to publish khoj python package to PyPi

This commit is contained in:
Debanjum Singh Solanky 2024-03-28 22:58:36 +05:30
parent 3417164ec2
commit a374288cea

View file

@ -22,6 +22,8 @@ jobs:
publish: publish:
name: Publish Python Package to PyPI name: Publish Python Package to PyPI
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
permissions:
id-token: write
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
@ -60,5 +62,3 @@ jobs:
- name: 📦 Publish Python Package to PyPI - name: 📦 Publish Python Package to PyPI
if: startsWith(github.ref, 'refs/tags') || github.ref == 'refs/heads/master' if: startsWith(github.ref, 'refs/tags') || github.ref == 'refs/heads/master'
uses: pypa/gh-action-pypi-publish@v1.8.14 uses: pypa/gh-action-pypi-publish@v1.8.14
with:
password: ${{ secrets.PYPI_API_KEY }}