From 59440cff09d5926d843ef0b6d537ab044089544b Mon Sep 17 00:00:00 2001 From: Red Mushie Date: Thu, 5 Oct 2023 19:53:03 +0200 Subject: [PATCH] ci: Add specific semver-only trigger and add support for release candidates --- .github/workflows/ci-tag.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-tag.yml b/.github/workflows/ci-tag.yml index 65df9f56..21833316 100644 --- a/.github/workflows/ci-tag.yml +++ b/.github/workflows/ci-tag.yml @@ -1,7 +1,8 @@ on: push: tags: - - 'v**' + - '[0-9]+.[0-9]+.[0-9]+' + - '[0-9]+.[0-9]+.[0-9]+-rc[0-9]+' name: ci-tag @@ -15,7 +16,7 @@ jobs: # of each board that is being built for. build: uses: ./.github/workflows/ci-build.yml - + # Publish one artifact PER BOARD. publish-artifacts: runs-on: ubuntu-latest @@ -44,6 +45,7 @@ jobs: file: OpenShock.${{ matrix.board }}.bin asset_name: OpenShock.${{ matrix.board }}.bin tag: ${{ github.ref }} + prerelease: ${{ contains(github.ref_name, '-rc') }} publish-release: runs-on: ubuntu-latest