mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Fix publish of pip package to PyPi on git tag
This commit is contained in:
parent
237e207304
commit
c21ab4316c
1 changed files with 5 additions and 3 deletions
8
.github/workflows/publish.yml
vendored
8
.github/workflows/publish.yml
vendored
|
@ -1,14 +1,16 @@
|
|||
name: publish
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
tags:
|
||||
- v*
|
||||
branches:
|
||||
- 'master'
|
||||
paths:
|
||||
- src/**
|
||||
- setup.py
|
||||
- .github/workflows/publish.yml
|
||||
push:
|
||||
pull_request:
|
||||
branches:
|
||||
- 'master'
|
||||
paths:
|
||||
|
@ -38,7 +40,7 @@ jobs:
|
|||
pip install --upgrade .
|
||||
|
||||
- name: Publish Release to PyPI
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
||||
if: startsWith(github.ref, 'refs/tags')
|
||||
env:
|
||||
TWINE_USERNAME: __token__
|
||||
TWINE_PASSWORD: ${{ secrets.PYPI_API_KEY }}
|
||||
|
|
Loading…
Add table
Reference in a new issue