Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
karlssberg committed Mar 27, 2024
2 parents 88bde5c + 487d86b commit fd87891
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
framework: ['netstandard2.0', 'net8.0']
steps:
- uses: actions/checkout@v3
- name: Setup .NET
Expand All @@ -25,12 +22,16 @@ jobs:
run: dotnet restore
- name: Test
run: dotnet test --verbosity normal
- name: Build for ${{ matrix.framework }}
run: dotnet build Karlssberg.Motiv/Karlssberg.Motiv.csproj --configuration Release --framework ${{ matrix.framework }} --no-restore -o ./Karlssberg.Motiv/bin/Release/${{ matrix.framework }}/
- name: Build for netstandard2.0
run: dotnet build Karlssberg.Motiv/Karlssberg.Motiv.csproj --configuration Release --framework netstandard2.0 --no-restore -o ./Karlssberg.Motiv/bin/Release/netstandard2.0/
- name: Build for net8.0
run: dotnet build Karlssberg.Motiv/Karlssberg.Motiv.csproj --configuration Release --framework net8.0 --no-restore -o ./Karlssberg.Motiv/bin/Release/net8.0/
- name: List Build Artifacts
run: find "$(pwd)/Karlssberg.Motiv/bin/Release" -type f
- name: Pack for ${{ matrix.framework }}
run: dotnet pack Karlssberg.Motiv/Karlssberg.Motiv.csproj --configuration Release --no-build -p:TargetFrameworks=${{ matrix.framework }} --output nupkgs/${{ matrix.framework }}
- name: Pack for netstandard2.0
run: dotnet pack Karlssberg.Motiv/Karlssberg.Motiv.csproj --configuration Release --no-build -p:TargetFrameworks=netstandard2.0 --output nupkgs/netstandard2.0
- name: Pack for net8.0
run: dotnet pack Karlssberg.Motiv/Karlssberg.Motiv.csproj --configuration Release --no-build -p:TargetFrameworks=net8.0 --output nupkgs/net8.0
- name: Publish to NuGet
run: dotnet nuget push **/*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
if: github.ref == 'refs/heads/main'
1 change: 1 addition & 0 deletions Karlssberg.Motiv/Karlssberg.Motiv.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<RepositoryType>git</RepositoryType>
<PackageTags>SpecificationPattern, DecisionMaking, Explanations, DesignPatterns, RulesEngine, BusinessLogic, Compliance, AuditTrails, RiskManagement, CSharp, .NET, Developers, Architects, ProductManagement, Advanced, Intermediate</PackageTags>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Version>1.0.1</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit fd87891

Please sign in to comment.