diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index cf36355..4af3bed 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -21,16 +21,14 @@ jobs: - name: Ensure .NET Installed uses: actions/setup-dotnet@v4 with: - dotnet-version: 6.0.x + dotnet-version: 8.0.x - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v3.1.11 - with: - versionSpec: '6.0.5' + run: dotnet tool install --global GitVersion.Tool --version 5.12.0 - name: Determine Version id: gitversion - uses: gittools/actions/gitversion/execute@v3.1.11 + uses: gittools/actions/gitversion/execute@v0.10.2 with: useConfigFile: true diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index c03455b..c2d752c 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -20,18 +20,16 @@ jobs: - name: Ensure .NET Installed uses: actions/setup-dotnet@v4 with: - dotnet-version: 6.0.x + dotnet-version: 8.0.x - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v3.1.11 - with: - versionSpec: '6.0.5' + run: dotnet tool install --global GitVersion.Tool --version 5.12.0 - name: Determine Version id: gitversion - uses: gittools/actions/gitversion/execute@v3.1.11 + uses: gittools/actions/gitversion/execute@v0.10.2 with: - useConfigFile: true 15 + useConfigFile: true - name: Restore Packages run: dotnet restore "${{ env.solution-path }}" @@ -39,4 +37,4 @@ jobs: run: dotnet build "${{ env.solution-path }}" --no-restore --configuration Release -p:version=${{ steps.gitversion.outputs.majorMinorPatch }} - name: Publish - run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.ICG_NUGET_API_KEY}} + run: dotnet nuget push **/*.nupkg -s 'https://api.nuget.org/v3/index.json' -k ${{secrets.ICG_NUGET_API_KEY}} diff --git a/GitVersion.yml b/GitVersion.yml index f9d9ea4..9306b18 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,26 +1,17 @@ mode: ContinuousDeployment -next-version: 6.0.5 +next-version: 1.0.0 branches: - develop: - regex: develop - label: 'alpha' + main: + regex: main + tag: 'alpha' increment: Patch - prevent-increment: - when-current-commit-tagged: true source-branches: [] - hotfix: - regex: hotfix[/-] - source-branches: [develop] - prevent-increment: - when-current-commit-tagged: true - is-release-branch: true pull-request: regex: (pull|pull\-requests|pr)[/-] - label: 'pr' - label-number-pattern: '[/-](?\d+)[-/]' + tag: 'pr' + tag-number-pattern: '[/-](?\d+)[-/]' increment: Patch - prevent-increment: - when-current-commit-tagged: true + prevent-increment-of-merged-branch-version: false is-release-branch: false source-branches: [] ignore: diff --git a/src/NetCore.Utilities.UnitTesting/NetCore.Utilities.UnitTesting.csproj b/src/NetCore.Utilities.UnitTesting/NetCore.Utilities.UnitTesting.csproj index 69bc35b..01189a4 100644 --- a/src/NetCore.Utilities.UnitTesting/NetCore.Utilities.UnitTesting.csproj +++ b/src/NetCore.Utilities.UnitTesting/NetCore.Utilities.UnitTesting.csproj @@ -18,7 +18,7 @@ true - net6.0 + net8.0 ICG.NetCore.Utilities.UnitTesting true true