ci: switch versioning from CalVer to SemVer #120
@@ -3,7 +3,7 @@ name: Release Binaries
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "[0-9]*"
|
- "v[0-9]*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
|
|||||||
@@ -3,11 +3,11 @@ name: Release Docker
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "[0-9]*"
|
- "v[0-9]*"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
tag:
|
tag:
|
||||||
description: "Image tag (e.g. 2026.06.1). Defaults to latest commit SHA."
|
description: "Image tag (e.g. 1.0.0, no v prefix). Defaults to latest commit SHA."
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -27,7 +27,9 @@ jobs:
|
|||||||
TAG="${{ github.sha }}"
|
TAG="${{ github.sha }}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
# Docker convention: git tag v1.2.3 -> image tag 1.2.3
|
||||||
TAG="${{ github.ref_name }}"
|
TAG="${{ github.ref_name }}"
|
||||||
|
TAG="${TAG#v}"
|
||||||
fi
|
fi
|
||||||
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
|
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ name: Mirror Release to GitHub
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "[0-9]*"
|
- "v[0-9]*"
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@ filter_unconventional = true
|
|||||||
split_commits = false
|
split_commits = false
|
||||||
protect_breaking_commits = false
|
protect_breaking_commits = false
|
||||||
filter_commits = false
|
filter_commits = false
|
||||||
tag_pattern = "[0-9]*"
|
tag_pattern = "v[0-9].*"
|
||||||
topo_order = false
|
topo_order = false
|
||||||
sort_commits = "oldest"
|
sort_commits = "oldest"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user