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: