diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index bfcb901..f1c98aa 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -10,6 +10,10 @@ on: description: 'Version tag (e.g., v1.0.0)' required: true default: 'v1.0.0' + branch: + description: 'Branch to build from' + required: false + default: 'main' jobs: build: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c553106..8e7b22d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,10 @@ name: CI Build on: push: - branches: [ main, develop, master ] + branches: [ '**' ] # 所有分支的推送都会触发 pull_request: branches: [ main, develop, master ] + workflow_dispatch: # 允许手动触发 jobs: build: