Update release workflows for branch process

This commit is contained in:
Benjamin Lu 2025-12-02 17:16:33 -08:00
parent 277237ccc1
commit b54b39fd3f
7 changed files with 24 additions and 9 deletions

View File

@ -5,6 +5,7 @@ on:
push: push:
branches: branches:
- master - master
- release/**
paths-ignore: paths-ignore:
- 'app/**' - 'app/**'
- 'input/**' - 'input/**'

View File

@ -2,9 +2,9 @@ name: Execution Tests
on: on:
push: push:
branches: [ main, master ] branches: [ master, release/** ]
pull_request: pull_request:
branches: [ main, master ] branches: [ master, release/** ]
jobs: jobs:
test: test:

View File

@ -2,9 +2,9 @@ name: Test server launches without errors
on: on:
push: push:
branches: [ main, master ] branches: [ master, release/** ]
pull_request: pull_request:
branches: [ main, master ] branches: [ master, release/** ]
jobs: jobs:
test: test:

View File

@ -2,9 +2,9 @@ name: Unit Tests
on: on:
push: push:
branches: [ main, master ] branches: [ master, release/** ]
pull_request: pull_request:
branches: [ main, master ] branches: [ master, release/** ]
jobs: jobs:
test: test:

View File

@ -6,6 +6,7 @@ on:
- "pyproject.toml" - "pyproject.toml"
branches: branches:
- master - master
- release/**
jobs: jobs:
update-version: update-version:

View File

@ -9,6 +9,12 @@ on:
type: string type: string
default: "129" default: "129"
release_tag:
description: 'Git tag to attach nightly package (e.g., v0.37.0); leave empty to upload to latest'
required: false
type: string
default: ""
python_minor: python_minor:
description: 'python minor version' description: 'python minor version'
required: true required: true
@ -34,6 +40,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
ref: ${{ inputs.release_tag || 'master' }}
fetch-depth: 30 fetch-depth: 30
persist-credentials: false persist-credentials: false
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
@ -89,5 +96,5 @@ jobs:
with: with:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ComfyUI_windows_portable_nvidia_or_cpu_nightly_pytorch.7z file: ComfyUI_windows_portable_nvidia_or_cpu_nightly_pytorch.7z
tag: "latest" tag: ${{ inputs.release_tag || 'latest' }}
overwrite: true overwrite: true

View File

@ -9,6 +9,12 @@ on:
type: string type: string
default: "129" default: "129"
release_tag:
description: 'Git tag to package and attach (e.g., v0.37.0); leave empty to build from master and upload to latest'
required: false
type: string
default: ""
python_minor: python_minor:
description: 'python minor version' description: 'python minor version'
required: true required: true
@ -50,6 +56,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
ref: ${{ inputs.release_tag || 'master' }}
fetch-depth: 150 fetch-depth: 150
persist-credentials: false persist-credentials: false
- shell: bash - shell: bash
@ -101,6 +108,5 @@ jobs:
with: with:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: new_ComfyUI_windows_portable_nvidia_cu${{ inputs.cu }}_or_cpu.7z file: new_ComfyUI_windows_portable_nvidia_cu${{ inputs.cu }}_or_cpu.7z
tag: "latest" tag: ${{ inputs.release_tag || 'latest' }}
overwrite: true overwrite: true