mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
add conditions to check for Repo and Secret
This commit is contained in:
parent
0197459b02
commit
93623a4449
3
.github/workflows/pypi-release.yml
vendored
3
.github/workflows/pypi-release.yml
vendored
@ -13,6 +13,7 @@ jobs:
|
|||||||
TWINE_USERNAME: __token__
|
TWINE_USERNAME: __token__
|
||||||
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
TWINE_NON_INTERACTIVE: 1
|
TWINE_NON_INTERACTIVE: 1
|
||||||
|
if: github.repository == "invoke-ai/InvokeAI"
|
||||||
steps:
|
steps:
|
||||||
- name: checkout sources
|
- name: checkout sources
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -36,5 +37,5 @@ jobs:
|
|||||||
print(f'PACKAGE_EXISTS={EXISTS}')" >> $GITHUB_ENV
|
print(f'PACKAGE_EXISTS={EXISTS}')" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: upload package
|
- name: upload package
|
||||||
if: env.PACKAGE_EXISTS == 'False'
|
if: env.PACKAGE_EXISTS == 'False' && env.TWINE_PASSWORD != ""
|
||||||
run: twine upload dist/*
|
run: twine upload dist/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user