diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1c986c7..c5b804e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,6 +4,8 @@ on: branches: - main - github-actions + tags: + - 'v*.*.*' # Trigger on tags that follow semantic versioning (e.g., v1.0.0) pull_request: branches: - main @@ -142,7 +144,8 @@ jobs: create-release: needs: build-cmake runs-on: ubuntu-latest - if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/github-actions') + if: startsWith(github.ref, 'refs/tags/v') # Trigger only on tags + # if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/github-actions') steps: - name: Download all artifacts uses: actions/download-artifact@v4