From 92aa2bbf1099737936578558f1b8d5f92967e801 Mon Sep 17 00:00:00 2001 From: Diego Iastrubni Date: Thu, 19 Sep 2024 16:11:30 +0300 Subject: [PATCH] create releases on tags --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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