Skip to content

Commit a09a0b7

Browse files
committed
Only build master on push and upload PR nupkgs
1 parent e554aa5 commit a09a0b7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/on-push.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
name: On Push
1+
name: Build master on push
22

3-
on: [push]
3+
on:
4+
push:
5+
branches: [ master ]
46

57
jobs:
68
BuildAndTest:

.github/workflows/pull-request.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ jobs:
7373
run: dotnet test -c ${{ matrix.configuration }} -f net45
7474

7575
Pack:
76-
if: 1 == 2
7776
needs: [Build, Test]
7877
runs-on: windows-latest
7978
env:
@@ -99,7 +98,7 @@ jobs:
9998
run: dotnet pack src/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.csproj --configuration Release --output dist /p:Version=$(git describe --abbrev | % { $_.substring(1) })-PR
10099

101100
- name: Upload nuget package artifact
102-
uses: actions/upload-artifact@v1
101+
uses: actions/upload-artifact@v2
103102
with:
104103
name: Nuget package
105104
path: dist/*.nupkg

0 commit comments

Comments
 (0)