Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdihadeli authored Aug 21, 2024
1 parent 1f47823 commit 8418013
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@
name: Publish-Nuget

on:
# push:
# tags:
# - "*"
push:
branches:
- "main"

env:
FEED_SOURCE: https://api.nuget.org/v3/index.json
FEED_API_KEY: ${{ secrets.FEED_API_KEY }}
Expand All @@ -19,9 +15,8 @@ env:
jobs:

# https://www.meziantou.net/publishing-a-nuget-package-following-best-practices-using-github.htm
create_nuget:
create-nuget:
if: ${{ contains(fromJson('["main"]'), github.ref_name) || github.event_name == 'release' }}
needs: build

runs-on: ubuntu-latest

Expand Down Expand Up @@ -71,7 +66,7 @@ jobs:
# 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]
needs: [create-nuget]
steps:
# Download the NuGet package created in the previous job
- uses: actions/download-artifact@v3
Expand Down

0 comments on commit 8418013

Please sign in to comment.