major: initial release (#2)

* major: official release and pipeline

* add chore option for pipeline

* major: initial release
This commit is contained in:
Rasmus Wejlgaard 2026-04-22 20:49:52 +01:00 committed by GitHub
parent e05f4385b3
commit 0f1a13eaeb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,14 +19,19 @@ jobs:
- name: Determine version - name: Determine version
id: version id: version
run: | run: |
LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0") LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
echo "Latest tag: $LATEST_TAG" echo "Latest tag: ${LATEST_TAG:-none}"
if [ -z "$LATEST_TAG" ]; then
COMMITS=$(git log HEAD --pretty=format:"%s")
else
COMMITS=$(git log ${LATEST_TAG}..HEAD --pretty=format:"%s") COMMITS=$(git log ${LATEST_TAG}..HEAD --pretty=format:"%s")
fi
echo "Commits since last tag:" echo "Commits since last tag:"
echo "$COMMITS" echo "$COMMITS"
VERSION=${LATEST_TAG#v} VERSION=${LATEST_TAG:-v0.0.0}
VERSION=${VERSION#v}
MAJOR=$(echo $VERSION | cut -d. -f1) MAJOR=$(echo $VERSION | cut -d. -f1)
MINOR=$(echo $VERSION | cut -d. -f2) MINOR=$(echo $VERSION | cut -d. -f2)
PATCH=$(echo $VERSION | cut -d. -f3) PATCH=$(echo $VERSION | cut -d. -f3)