Compare commits

...

3 Commits

Author SHA1 Message Date
75351ec24b Merge pull request 'hotfix/checkgit' (#2) from hotfix/checkgit into master
All checks were successful
Build NuGet / build (push) Successful in 34s
Reviewed-on: #2
2026-04-08 22:55:07 -04:00
eebd8f950a Merge remote-tracking branch 'origin/master' into hotfix/checkgit 2026-04-08 22:52:56 -04:00
fd70567062 trying not gitversion 2026-04-08 22:52:06 -04:00
2 changed files with 13 additions and 30 deletions

View File

@@ -21,23 +21,28 @@ jobs:
- name: Restore
run: dotnet restore
- name: Calculate Version
id: version
run: |
TAG=$(git describe --tags --abbrev=0)
COMMITS=$(git rev-list $TAG..HEAD --count)
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0
with:
versionSpec: '5.x'
BASE=${TAG#v}
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/execute@v0
IFS='.' read MAJOR MINOR PATCH <<< "$BASE"
NEW_PATCH=$((PATCH + COMMITS))
VERSION="$MAJOR.$MINOR.$NEW_PATCH"
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
- name: Build
run: dotnet build -c Release
- name: Pack
run: |
dotnet pack \
-p:PackageVersion=${{ steps.gitversion.outputs.semVer }} \
-p:PackageVersion=${{ steps.version.outputs.VERSION }} \
-c Release
- name: Publish

View File

@@ -1,22 +0,0 @@
mode: ContinuousDeployment
tag-prefix: '[vV]'
increment: Patch
branches:
master:
label: ''
increment: Patch
prevent-increment-of-merged-branch-version: true
feature:
label: preview
increment: Minor
hotfix:
label: ''
increment: Patch
pull-request:
label: pr