Skip to content

Commit

Permalink
Fix dotnet push
Browse files Browse the repository at this point in the history
Fix mixing bash and PowerShell.
  • Loading branch information
martincostello committed Sep 9, 2023
1 parent 056c5bd commit e01ca8e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,11 @@ jobs:
uses: actions/setup-dotnet@3447fd6a9f9e57506b15f895c5b76d3b197dc7c2 # v3.2.0

- name: Push NuGet packages to feedz.io
shell: bash
env:
API_KEY: ${{ secrets.FEEDZ_IO_TOKEN }}
SOURCE: "https://f.feedz.io/${{ github.repository }}/nuget/index.json"
run: dotnet nuget push "*.nupkg" --api-key "${env:API_KEY}" --skip-duplicate --source "${env:SOURCE}"
run: dotnet nuget push "*.nupkg" --api-key "${API_KEY}" --skip-duplicate --source "${SOURCE}"

publish-nuget:
needs: validate-packages
Expand All @@ -172,7 +173,8 @@ jobs:
uses: actions/setup-dotnet@3447fd6a9f9e57506b15f895c5b76d3b197dc7c2 # v3.2.0

- name: Push NuGet packages to NuGet.org
shell: bash
env:
API_KEY: ${{ secrets.NUGET_TOKEN }}
SOURCE: https://api.nuget.org/v3/index.json
run: dotnet nuget push "*.nupkg" --api-key "${env:API_KEY}" --skip-duplicate --source "${env:SOURCE}"
run: dotnet nuget push "*.nupkg" --api-key "${API_KEY}" --skip-duplicate --source "${SOURCE}"

0 comments on commit e01ca8e

Please sign in to comment.