Compare commits

...

4 Commits

Author SHA1 Message Date
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
0d313d2bb4 Merge pull request 'test one' (#1) from hotfix/checkgit into master
Some checks failed
Build NuGet / build (push) Failing after 35s
Reviewed-on: #1
2026-04-08 22:40:59 -04:00
acf2692955 test one 2026-04-08 22:39:33 -04:00
2 changed files with 13 additions and 17 deletions

View File

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

View File

@@ -1,9 +0,0 @@
mode: ContinuousDelivery
branches:
master:
increment: Patch
feature:
increment: Minor
hotfix:
increment: Patch