diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2e497e9..3e6b781 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,8 +19,6 @@ env: jobs: # https://www.meziantou.net/publishing-a-nuget-package-following-best-practices-using-github.htm create-nuget: - if: ${{ contains(fromJson('["main"]'), github.ref_name) || github.event_name == 'release' }} - runs-on: ubuntu-latest steps: @@ -63,12 +61,11 @@ jobs: path: ${{ env.NuGetDirectory }}/*.nupkg deploy-nuget: - if: ${{ contains(fromJson('["main"]'), github.ref_name) || github.event_name == 'release' }} + runs-on: ubuntu-latest # Publish only when creating a GitHub Release # https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository # You can update this logic if you want to manage releases differently - runs-on: ubuntu-latest needs: [create-nuget] steps: - uses: actions/checkout@v3