From acf2692955543d99c7ec31017615c3bd096a8bd7 Mon Sep 17 00:00:00 2001 From: ronnie Date: Wed, 8 Apr 2026 22:39:33 -0400 Subject: [PATCH 1/2] test one --- GitVersion.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/GitVersion.yml b/GitVersion.yml index c1cf715..883316f 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,9 +1,22 @@ -mode: ContinuousDelivery +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: - increment: Patch \ No newline at end of file + label: '' + increment: Patch + + pull-request: + label: pr \ No newline at end of file From fd705670623c076a129cb575ec391daf0188bf3f Mon Sep 17 00:00:00 2001 From: ronnie Date: Wed, 8 Apr 2026 22:52:06 -0400 Subject: [PATCH 2/2] trying not gitversion --- .gitea/workflows/test.yml | 21 +++++++++++++-------- GitVersion.yml | 22 ---------------------- 2 files changed, 13 insertions(+), 30 deletions(-) delete mode 100644 GitVersion.yml diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index ca5207c..b5382a7 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -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 diff --git a/GitVersion.yml b/GitVersion.yml deleted file mode 100644 index 883316f..0000000 --- a/GitVersion.yml +++ /dev/null @@ -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 \ No newline at end of file