From e1a7c57e0fdf0ad9a22973d0ccca1b5bc4743cd3 Mon Sep 17 00:00:00 2001 From: Alexander Renz Date: Wed, 7 Jan 2026 20:48:01 +0100 Subject: [PATCH] fix: CI runs only once - on release publish, not on tag push Removed duplicate CI triggers: - Before: Ran on push to branches AND on tag push (doubled) - After: Runs on push to branches OR when release is published This prevents wasted CI resources and confusion. --- .gitea/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index e66f019..26cdefb 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -6,9 +6,10 @@ name: CI/CD on: push: branches: [main, master, develop] - tags: ['v*'] pull_request: branches: [main, master] + release: + types: [published] jobs: test: @@ -63,7 +64,7 @@ jobs: name: Build & Release runs-on: ubuntu-latest needs: [test, lint] - if: startsWith(github.ref, 'refs/tags/') + if: github.event_name == 'release' container: image: golang:1.24-bookworm steps: