Skip to content

Commit

Permalink
Fix master on-push workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
piksel authored Aug 16, 2020
1 parent 69ce65c commit 118fa32
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ jobs:


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

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

- name: Show package name
run: ls dist\*.nupkg

- name: Publish the package to GPR
if: env.PUBLISH_DEV_PACKS == 'enabled'
run: dotnet nuget push dist\*.nupkg
- name: Upload nuget package artifact
uses: actions/upload-artifact@v2
with:
name: Nuget package
path: dist/*.nupkg

0 comments on commit 118fa32

Please sign in to comment.