From 0db8954137eeef6fe24aac3c9d85df5436b56dbb Mon Sep 17 00:00:00 2001 From: Alex Rakowski <20504869+agrski@users.noreply.github.com> Date: Mon, 5 Jun 2023 20:03:37 +0100 Subject: [PATCH 1/4] Use very simple version matching pattern for release tags --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ab49d9a..0c2b134 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -2,7 +2,7 @@ name: create-release on: push: tags: - - 'v[0-9]+.[0-9]+.[0-9]+*' + - 'v*' jobs: create-release: runs-on: ubuntu-latest From 0088bea11ded9ab87c04c75a56381b2e4d87bccd Mon Sep 17 00:00:00 2001 From: Alex Rakowski <20504869+agrski@users.noreply.github.com> Date: Mon, 5 Jun 2023 20:37:11 +0100 Subject: [PATCH 2/4] Use tag pattern for major.minor.patch This is an experiment to see if this would match e.g. v0.1.0 correctly. --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0c2b134..1ddf66a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -2,7 +2,7 @@ name: create-release on: push: tags: - - 'v*' + - 'v[0-9]+.[0-9]+.[0-9]+' jobs: create-release: runs-on: ubuntu-latest From 0e90f7d9953d7ca2324b665fe3e16fa73eb51b9c Mon Sep 17 00:00:00 2001 From: Alex Rakowski <20504869+agrski@users.noreply.github.com> Date: Mon, 5 Jun 2023 20:44:35 +0100 Subject: [PATCH 3/4] Allow trailing characters in tag pattern --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1ddf66a..785f9d0 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -2,7 +2,7 @@ name: create-release on: push: tags: - - 'v[0-9]+.[0-9]+.[0-9]+' + - 'v[0-9]+.[0-9]+.[0-9]+*?' jobs: create-release: runs-on: ubuntu-latest From 0d99e535c8c8c216afa6dcc77d6434a2168d611c Mon Sep 17 00:00:00 2001 From: Alex Rakowski <20504869+agrski@users.noreply.github.com> Date: Sun, 10 Dec 2023 21:04:33 +0000 Subject: [PATCH 4/4] Allow only exact version or with dash-separated additional context This context should be pre-release/build info to be compliant with SemVer. --- .github/workflows/release.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 785f9d0..d30f6f6 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -2,7 +2,8 @@ name: create-release on: push: tags: - - 'v[0-9]+.[0-9]+.[0-9]+*?' + - 'v[0-9]+.[0-9]+.[0-9]+' + - 'v[0-9]+.[0-9]+.[0-9]+-*' jobs: create-release: runs-on: ubuntu-latest