Skip to content
This repository has been archived by the owner on Jul 31, 2022. It is now read-only.

Commit

Permalink
Removing main condition
Browse files Browse the repository at this point in the history
  • Loading branch information
samsmithnz committed Jan 6, 2022
1 parent 16c839c commit 9b2d39f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
NuGetPush:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main'
#if: github.ref == 'refs/heads/main'
steps:
- name: Display GitVersion outputs
run: |
Expand All @@ -88,6 +88,6 @@ jobs:
tag_name: ${{ needs.build.outputs.Version }}
release_name: Release ${{ needs.build.outputs.Version }}
- name: Publish nuget package to nuget.org
if: needs.build.outputs.CommitsSinceVersionSource > 0 #Only publish a NuGet package if there has been a commit/version change
if: 0 == 1 && needs.build.outputs.CommitsSinceVersionSource > 0 #Only publish a NuGet package if there has been a commit/version change
run: dotnet nuget push nugetPackage\*.nupkg --api-key "${{ secrets.GHPackagesToken }}" --source "https://api.nuget.org/v3/index.json"
shell: pwsh

0 comments on commit 9b2d39f

Please sign in to comment.