Don't pack and publish PRs

This commit is contained in:
Shay Rojansky
2020-09-16 14:11:21 +03:00
parent 4edb150000
commit 36a41daa87

View File

@@ -19,14 +19,15 @@ jobs:
run: dotnet test run: dotnet test
- name: Pack NuGet packages (CI versions) - name: Pack NuGet packages (CI versions)
if: startsWith(github.ref, 'refs/heads/') if: startsWith(github.ref, 'refs/heads/') && github.event_name == 'push' && startsWith(github.repository, 'efcore/')
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 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) - name: Pack NuGet packages (Release versions)
if: startsWith(github.ref, 'refs/tags/v') if: startsWith(github.ref, 'refs/tags/v') && github.event_name == 'push' && startsWith(github.repository, 'efcore/')
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
if: github.event_name == 'push' && startsWith(github.repository, 'efcore/')
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v1
with: with:
name: EFCore.NamingConventions name: EFCore.NamingConventions