ci: optimize release workflow pipeline
- Run docker build in parallel with platform builds instead of sequentially - Publish release as pre-release instead of full release for manual verification - Integrate brew/scoop package publishing into release workflow - Keep publish-packages.yml with workflow_dispatch only for manual re-runs
This commit is contained in:
1 parent
9a5ef5a5bc
commit
91252acd59
2 files changed
+202
-12
No files matched your search
@@ -6,9 +6,6 @@ on:
|
||||
tag:
|
||||
description: 'Release tag (e.g. v0.3.10)'
|
||||
required: true
|
||||
workflow_run:
|
||||
workflows: ["Release"]
|
||||
types: [completed]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -21,17 +18,12 @@ env:
|
||||
jobs:
|
||||
publish:
|
||||
name: Publish to Homebrew & Scoop
|
||||
if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Extract version from tag
|
||||
id: version
|
||||
run: |
|
||||
if [[ -n "${{ github.event.inputs.tag }}" ]]; then
|
||||
TAG="${{ github.event.inputs.tag }}"
|
||||
else
|
||||
TAG="${{ github.event.workflow_run.head_branch }}"
|
||||
fi
|
||||
TAG="${{ github.event.inputs.tag }}"
|
||||
TAG="$(echo "${TAG}" | xargs)"
|
||||
VERSION="${TAG#v}"
|
||||
if [[ ! "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+ ]]; then
|
||||
|
||||
Reference in new issue
Block a user