mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-08 05:39:13 +00:00
Fix publish of pip package to PyPi on git tag
This commit is contained in:
8
.github/workflows/publish.yml
vendored
8
.github/workflows/publish.yml
vendored
@@ -1,14 +1,16 @@
|
|||||||
name: publish
|
name: publish
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
push:
|
||||||
|
tags:
|
||||||
|
- v*
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'master'
|
||||||
paths:
|
paths:
|
||||||
- src/**
|
- src/**
|
||||||
- setup.py
|
- setup.py
|
||||||
- .github/workflows/publish.yml
|
- .github/workflows/publish.yml
|
||||||
push:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'master'
|
||||||
paths:
|
paths:
|
||||||
@@ -38,7 +40,7 @@ jobs:
|
|||||||
pip install --upgrade .
|
pip install --upgrade .
|
||||||
|
|
||||||
- name: Publish Release to PyPI
|
- name: Publish Release to PyPI
|
||||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
if: startsWith(github.ref, 'refs/tags')
|
||||||
env:
|
env:
|
||||||
TWINE_USERNAME: __token__
|
TWINE_USERNAME: __token__
|
||||||
TWINE_PASSWORD: ${{ secrets.PYPI_API_KEY }}
|
TWINE_PASSWORD: ${{ secrets.PYPI_API_KEY }}
|
||||||
|
|||||||
Reference in New Issue
Block a user