This commit is contained in:
psychedelicious
2023-12-23 23:50:12 +11:00
parent 5c0c473f57
commit 800ea20501

View File

@@ -13,6 +13,16 @@ on:
type: boolean
jobs:
check-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: samuelcolvin/check-python-version@v4
id: check-python-version
with:
version_file_path: invokeai/version/invokeai_version.py
check-frontend:
if: github.event.inputs.skip_code_checks != 'true'
uses: ./.github/workflows/check-frontend.yml
@@ -26,7 +36,7 @@ jobs:
uses: ./.github/workflows/check-pytest.yml
build:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@@ -57,20 +67,13 @@ jobs:
path: ${{ steps.create_installer.outputs.INSTALLER_PATH }}
publish-testpypi:
runs-on: ubuntu-22.04
needs: [check-frontend, check-python, pytest, build]
runs-on: ubuntu-latest
needs: [check-version, check-frontend, check-python, pytest, build]
if: ${{ github.event.inputs.skip_code_checks != true && github.event.inputs.skip_code_checks != 'true' }}
environment:
name: testpypi
url: https://test.pypi.org/p/invokeai
steps:
- uses: actions/checkout@v4
- uses: samuelcolvin/check-python-version@v4
id: check-python-version
with:
version_file_path: invokeai/version/invokeai_version.py
- name: Download distribution from build job
uses: actions/download-artifact@v4
with:
@@ -83,20 +86,13 @@ jobs:
repository-url: https://test.pypi.org/legacy/
publish-pypi:
runs-on: ubuntu-22.04
needs: [check-frontend, check-python, pytest, build]
runs-on: ubuntu-latest
needs: [check-version, check-frontend, check-python, pytest, build]
if: ${{ github.event.inputs.skip_code_checks != true && github.event.inputs.skip_code_checks != 'true' }}
environment:
name: pypi
url: https://pypi.org/p/invokeai
steps:
- uses: actions/checkout@v4
- uses: samuelcolvin/check-python-version@v4
id: check-python-version
with:
version_file_path: invokeai/version/invokeai_version.py
- name: Download distribution from build job
uses: actions/download-artifact@v4
with: