Skip to content

Commit

Permalink
ci: some ci change
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdihadeli committed Aug 22, 2024
1 parent 2dadd91 commit eb94e9f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit eb94e9f

Please sign in to comment.