Pack CI vs. release packages

This commit is contained in:
Shay Rojansky
2020-09-15 02:09:50 +03:00
parent 3dfe9ca854
commit 58f39b7ccf

View File

@@ -18,7 +18,12 @@ jobs:
- name: Test - name: Test
run: dotnet test run: dotnet test
- name: Pack - name: Pack NuGet packages (CI versions)
if: startsWith(github.ref, 'refs/heads/')
run: dotnet pack --configuration Release --output nupkgs --version-suffix "ci.$(date -u +%Y%m%dT%H%M%S)+sha.${GITHUB_SHA:0:9}" -p:ContinuousIntegrationBuild=true
- name: Pack NuGet packages (Release versions)
if: startsWith(github.ref, 'refs/tags/v')
run: dotnet pack --configuration Release --output nupkgs -p:ContinuousIntegrationBuild=true run: dotnet pack --configuration Release --output nupkgs -p:ContinuousIntegrationBuild=true
- name: Upload artifacts - name: Upload artifacts