From 021c42fe94e9624d63bb4e2fae648932337fa3dc Mon Sep 17 00:00:00 2001 From: darthsharp <48331467+darthsharp@users.noreply.github.com> Date: Sun, 11 Jan 2026 12:32:09 +0100 Subject: [PATCH] Update release workflow and GitVersion configuration for improved build and tagging behavior - Changed build command target in `release.yml` from `pack` to `nugetpush` for accurate NuGet publishing. - Modified `GitVersion.yml` to prevent version increment when the current commit is tagged. --- .github/workflows/release.yml | 2 +- GitVersion.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 70f1df0c..1718a627 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,7 @@ jobs: ~/.nuget/packages key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }} - name: 'Build with target: NuGetPush' - run: ./build.cmd -t pack + run: ./build.cmd -t nugetpush env: NUGET_TOKEN: ${{ secrets.NUGET_ORG_TOKEN }} - name: 'Publish: coverage_report' diff --git a/GitVersion.yml b/GitVersion.yml index ebd6e016..824b9ddc 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -29,7 +29,7 @@ branches: track-merge-target: false regex: ^master$|^main$ prevent-increment: - when-current-commit-tagged: false + when-current-commit-tagged: true source-branches: - develop - release