From 01c9e7590bb61dee20cc7742352b884c72185d3b Mon Sep 17 00:00:00 2001 From: chengjingtao Date: Sun, 19 Apr 2026 08:27:46 +0000 Subject: [PATCH 1/2] ci: remove apk build, add PR dry-run for release workflow - Remove APK build step: alauda version format (0.0.19-alauda-1) contains hyphens which are invalid in Alpine pkgver, causing "package file format error" on index creation. - Create empty dist/apk dir so DistBinaries() ls doesn't fail. - Add pull_request trigger (scoped to release/dagger/go.mod paths) so the build pipeline can be validated in PR before merging. - Guard Publish Release with `if: github.event_name != 'pull_request'` to skip actual publishing during PR validation. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/release-alauda.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-alauda.yml b/.github/workflows/release-alauda.yml index 7ab8a453d..e324251d8 100644 --- a/.github/workflows/release-alauda.yml +++ b/.github/workflows/release-alauda.yml @@ -4,6 +4,14 @@ on: push: tags: - "v*-alauda-*" + pull_request: + branches: + - 'alauda-v*' + paths: + - '.github/workflows/release-alauda.yml' + - '.github/workflows/alauda-auto-tag.yml' + - '.dagger/**' + - 'go.mod' workflow_call: workflow_dispatch: @@ -48,12 +56,8 @@ jobs: verb: call args: "nfpm-build --build-dir=./dist export --path=./dist" - - name: APK Build - uses: dagger/dagger-for-github@v7 - with: - version: ${{ steps.dagger_version.outputs.version }} - verb: call - args: "apk --build-dir=./dist export --path=./dist" + - name: Create empty apk dir + run: mkdir -p dist/apk - name: Create Checksum uses: dagger/dagger-for-github@v7 @@ -63,6 +67,7 @@ jobs: args: "checksum --build-dir=./dist export --path=./dist" - name: Publish Release + if: github.event_name != 'pull_request' uses: dagger/dagger-for-github@v7 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 92deb3223bc0d5b5522bbff3e1a149dc27ab220e Mon Sep 17 00:00:00 2001 From: chengjingtao Date: Sun, 19 Apr 2026 08:38:49 +0000 Subject: [PATCH 2/2] remove github pr trigger Signed-off-by: chengjingtao --- .github/workflows/release-alauda.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/release-alauda.yml b/.github/workflows/release-alauda.yml index e324251d8..41ec30336 100644 --- a/.github/workflows/release-alauda.yml +++ b/.github/workflows/release-alauda.yml @@ -4,14 +4,6 @@ on: push: tags: - "v*-alauda-*" - pull_request: - branches: - - 'alauda-v*' - paths: - - '.github/workflows/release-alauda.yml' - - '.github/workflows/alauda-auto-tag.yml' - - '.dagger/**' - - 'go.mod' workflow_call: workflow_dispatch: