Skip to content

Commit 5ae4f10

Browse files
authored
Split build and pack in CI on push
1 parent 00c673e commit 5ae4f10

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/on-push.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,15 @@ jobs:
7575
dotnet-version: '3.1.x'
7676
source-url: https://nuget.pkg.github.com/icsharpcode/index.json
7777

78-
- name: Build and pack
79-
run: dotnet build -c Release -o dist /p:ContinuousIntegrationBuild=true /p:EmbedUntrackedSources=true /p:Version=$(git describe --abbrev | % { $_.substring(1) }) src/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.csproj
78+
- name: Build library for .NET Standard 2.0
79+
run: dotnet build -c Release -f netstandard2.0 /p:ContinuousIntegrationBuild=true src/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.csproj
80+
- name: Build library for .NET Standard 2.1
81+
run: dotnet build -c Release -f netstandard2.1 /p:ContinuousIntegrationBuild=true src/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.csproj
82+
- name: Build library for .NET Framework 4.5
83+
run: dotnet build -c Release -f net45 /p:ContinuousIntegrationBuild=true src/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.csproj
84+
85+
- name: Create nuget package
86+
run: dotnet pack src/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.csproj --configuration Release --output dist /p:ContinuousIntegrationBuild=true /p:EmbedUntrackedSources=true /p:Version=$(git describe --abbrev | % { $_.substring(1) })
8087

8188
- name: Upload nuget package artifact
8289
uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)