From 4096171fb46c06abeaa3c79553ac63b8a1c2a1af Mon Sep 17 00:00:00 2001 From: gab-k Date: Thu, 2 Jan 2025 10:55:43 +0100 Subject: [PATCH] Update release.yml and prerelease.yml --- .github/workflows/prerelease.yml | 3 +-- .github/workflows/release.yml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 94d1c31..2642b9d 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -5,7 +5,7 @@ name: Build Software and create release on tag on: push: tags: - - "v*.*-rc" # Trigger on rc tag push + - "v[0-9]+.[0-9]+-rc$" # Trigger on rc version tag push env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) @@ -42,7 +42,6 @@ jobs: path: ${{github.workspace}}/Software/build prerelease: - if: github.ref == 'refs/heads/dev' # Only deploy on 'dev' branch runs-on: ubuntu-latest needs: build steps: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 82013cf..dd5c772 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ name: Build Software and create release on tag on: push: tags: - - "v*.*" # Trigger on rc tag push + - "v[0-9]+.[0-9]+$" # Trigger on regular version tag push env: @@ -43,7 +43,6 @@ jobs: path: ${{github.workspace}}/Software/build release: - if: github.ref == 'refs/heads/main' # Only deploy on 'main' branch runs-on: ubuntu-latest needs: build steps: