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