mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Reorder publish actions by order of importance in publish workflow
This commit is contained in:
parent
c3ae3cb021
commit
50575b283c
1 changed files with 17 additions and 20 deletions
37
.github/workflows/publish.yml
vendored
37
.github/workflows/publish.yml
vendored
|
@ -37,18 +37,27 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
pip install --upgrade .
|
pip install --upgrade .
|
||||||
|
|
||||||
- name: Build, Check App to Publish
|
- name: Publish Release to PyPI
|
||||||
run: |
|
|
||||||
rm -rf dist
|
|
||||||
python -m build
|
|
||||||
twine check dist/*
|
|
||||||
|
|
||||||
- name: Publish App to PyPI
|
|
||||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
if: github.event_name == 'push' && 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 }}
|
||||||
run: |
|
run: |
|
||||||
|
rm -rf dist
|
||||||
|
python -m build
|
||||||
|
twine check dist/*
|
||||||
|
twine upload dist/*
|
||||||
|
|
||||||
|
- name: Publish Master to PyPI
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
|
env:
|
||||||
|
TWINE_USERNAME: __token__
|
||||||
|
TWINE_PASSWORD: ${{ secrets.PYPI_API_KEY }}
|
||||||
|
run: |
|
||||||
|
sed -E -i "s/version=(.*)',/version=\1a$(date +%s)',/g" setup.py
|
||||||
|
rm -rf dist
|
||||||
|
python -m build
|
||||||
|
twine check dist/*
|
||||||
twine upload dist/*
|
twine upload dist/*
|
||||||
|
|
||||||
- name: Publish PR to Test PyPI
|
- name: Publish PR to Test PyPI
|
||||||
|
@ -62,16 +71,4 @@ jobs:
|
||||||
rm -rf dist
|
rm -rf dist
|
||||||
python -m build
|
python -m build
|
||||||
twine check dist/*
|
twine check dist/*
|
||||||
twine upload -r testpypi dist/*
|
twine upload -r testpypi dist/*
|
||||||
|
|
||||||
- name: Publish Master to Test PyPI
|
|
||||||
if: github.ref == 'refs/heads/master'
|
|
||||||
env:
|
|
||||||
TWINE_USERNAME: __token__
|
|
||||||
TWINE_PASSWORD: ${{ secrets.PYPI_API_KEY }}
|
|
||||||
run: |
|
|
||||||
sed -E -i "s/version=(.*)',/version=\1a$(date +%s)',/g" setup.py
|
|
||||||
rm -rf dist
|
|
||||||
python -m build
|
|
||||||
twine check dist/*
|
|
||||||
twine upload dist/*
|
|
Loading…
Add table
Reference in a new issue