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.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user