From 58f39b7ccf283528ea3a8da81746274c9b2d2f1a Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Tue, 15 Sep 2020 02:09:50 +0300 Subject: [PATCH] Pack CI vs. release packages --- .github/workflows/build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a582feb..19b1001 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,12 @@ jobs: - name: 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 - name: Upload artifacts