Skip to content

Commit 118fa32

Browse files
authored
Fix master on-push workflow
1 parent 69ce65c commit 118fa32

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/on-push.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ jobs:
4646

4747

4848
Package:
49-
if: env.PUBLISH_DEV_PACKS != 'disabled'
5049
needs: [BuildAndTest]
5150
runs-on: windows-latest
5251
env:
@@ -69,11 +68,10 @@ jobs:
6968
run: dotnet build -c Release -f net45 src/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.csproj
7069

7170
- name: Create nuget package
72-
run: dotnet pack src/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.csproj --configuration Release --output dist /p:Version=$(git describe --abbrev | % { $_.substring(1) })
71+
run: dotnet pack src/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.csproj --configuration Release --output dist /p:ContinuousIntegrationBuild=true /p:Version=$(git describe --abbrev | % { $_.substring(1) })
7372

74-
- name: Show package name
75-
run: ls dist\*.nupkg
76-
77-
- name: Publish the package to GPR
78-
if: env.PUBLISH_DEV_PACKS == 'enabled'
79-
run: dotnet nuget push dist\*.nupkg
73+
- name: Upload nuget package artifact
74+
uses: actions/upload-artifact@v2
75+
with:
76+
name: Nuget package
77+
path: dist/*.nupkg

0 commit comments

Comments
 (0)