From 2c97947e2c1c0c30a5e54d21e1f098e8c73c4667 Mon Sep 17 00:00:00 2001 From: Diogo Tridapalli Date: Wed, 21 Jan 2026 23:37:51 -0300 Subject: [PATCH] Simplify CI/CD to single main branch with manual releases - CI: PRs to main run tests and warn (not fail) on version issues - Release: Manual trigger via workflow_dispatch instead of auto on push - Remove dev branch from workflow triggers Co-Authored-By: Claude Opus 4.5 --- .github/workflows/ci.yml | 14 +++----------- .github/workflows/release.yml | 4 +--- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c7ed16..0e388bc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,6 @@ name: CI on: pull_request: branches: - - dev - main jobs: @@ -22,20 +21,13 @@ jobs: - name: Run tests run: swift test - - name: Validate version (main) - if: github.base_ref == 'main' - uses: ./.github/actions/validate-version - with: - check-tag-exists: 'true' - - - name: Validate version (dev) + - name: Validate version id: version-check - if: github.base_ref == 'dev' uses: ./.github/actions/validate-version with: check-tag-exists: 'true' continue-on-error: true - name: Version validation warning - if: github.base_ref == 'dev' && steps.version-check.outcome == 'failure' - run: echo "::warning::Version validation failed. Remember to bump the version before merging to main." + if: steps.version-check.outcome == 'failure' + run: echo "::warning::Version validation failed. Remember to bump the version before creating a release." diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 36c0812..29d4912 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,7 @@ name: Release on: - push: - branches: - - main + workflow_dispatch: jobs: release: