mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix pypi-release.yml
This commit is contained in:
parent
93623a4449
commit
5095285854
4
.github/workflows/pypi-release.yml
vendored
4
.github/workflows/pypi-release.yml
vendored
@ -13,7 +13,6 @@ jobs:
|
||||
TWINE_USERNAME: __token__
|
||||
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
||||
TWINE_NON_INTERACTIVE: 1
|
||||
if: github.repository == "invoke-ai/InvokeAI"
|
||||
steps:
|
||||
- name: checkout sources
|
||||
uses: actions/checkout@v3
|
||||
@ -28,7 +27,6 @@ jobs:
|
||||
run: twine check dist/*
|
||||
|
||||
- name: check PyPI versions
|
||||
if: github.ref == 'refs/heads/main'
|
||||
run: |
|
||||
pip install --upgrade requests
|
||||
python -c "\
|
||||
@ -37,5 +35,5 @@ jobs:
|
||||
print(f'PACKAGE_EXISTS={EXISTS}')" >> $GITHUB_ENV
|
||||
|
||||
- name: upload package
|
||||
if: env.PACKAGE_EXISTS == 'False' && env.TWINE_PASSWORD != ""
|
||||
if: env.PACKAGE_EXISTS == 'False' && github.ref == 'refs/heads/main' && env.TWINE_PASSWORD != ''
|
||||
run: twine upload dist/*
|
||||
|
Loading…
Reference in New Issue
Block a user