Skip to content

Fixes #33 / Updated csproj file. Updated yml files with new dotnet command fixed… #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,21 @@ 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 }}"
- name: Build
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}}
23 changes: 7 additions & 16 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -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: '[/-](?<number>\d+)[-/]'
tag: 'pr'
tag-number-pattern: '[/-](?<number>\d+)[-/]'
increment: Patch
prevent-increment:
when-current-commit-tagged: true
prevent-increment-of-merged-branch-version: false
is-release-branch: false
source-branches: []
ignore:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<EmbedUntrackedSources>true</EmbedUntrackedSources>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>ICG.NetCore.Utilities.UnitTesting</RootNamespace>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand Down
Loading