mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 21:29:11 +00:00
Use OIDC TrustedPublisher to publish khoj python package to PyPi
This commit is contained in:
4
.github/workflows/pypi.yml
vendored
4
.github/workflows/pypi.yml
vendored
@@ -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 }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user