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: