Skip to content

Commit

Permalink
ci: ci change
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdihadeli committed Aug 22, 2024
1 parent aac0809 commit b9fe1af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ on:
- main # for publish package and each commit to github
env:
FEED_SOURCE: https://api.nuget.org/v3/index.json
GHC_SOURCE: ${{ env.GHC_SOURCE }}
FEED_API_KEY: ${{ secrets.FEED_API_KEY }}
GHC_API_KEY: ${{ secrets.GHC_TOKEN }}
NuGetDirectory: ${{ github.workspace}}/nuget

jobs:
Expand Down Expand Up @@ -92,7 +94,7 @@ jobs:

# for publish package to github for each commit
- name: Publish NuGet Package Version ${{ steps.nbgv.outputs.SemVer2 }} to GitHub
run: dotnet nuget push ${{ env.NuGetDirectory }}/*.nupkg --skip-duplicate
run: dotnet nuget push ${{ env.NuGetDirectory }}/*.nupkg --skip-duplicate --api-key ${{ env.GHC_API_KEY }} --source ${{ env.GHC_SOURCE }}
if: github.event_name == 'push' && startswith(github.ref, 'refs/heads')

# Publish all NuGet packages to NuGet.org
Expand Down

0 comments on commit b9fe1af

Please sign in to comment.