Skip to content

Commit

Permalink
use dotnet to push packages
Browse files Browse the repository at this point in the history
  • Loading branch information
fallenwood committed Jan 28, 2025
1 parent 4beed67 commit bb50c48
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,9 @@ jobs:
- name: Build (CD)
if: ${{ github.event.inputs.version != '' }}
run: dotnet build -c Release -t:Pack src/Fallenwood.PublishAotCross.nuproj -p:Version=${{ github.event.inputs.version }}
- name: Configure GitHub NuGet registry
if: ${{ github.event.inputs.version != '' }}
run: nuget sources add -name github -source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json -username ${{ github.repository_owner }} -password ${{ secrets.GITHUB_TOKEN }}
- name: Push to GitHub package registry
if: ${{ github.event.inputs.version != '' }}
run: nuget push src/bin/Release/*.nupkg -ApiKey ${{ secrets.GITHUB_TOKEN }} -Source github -SkipDuplicate
run: dotnet nuget push src/bin/Release/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
- name: Push to NuGet.org
if: ${{ github.event.inputs.version != '' }}
run: nuget push src/bin/Release/*.nupkg -ApiKey ${{ secrets.NUGET_API_KEY }} -Source https://api.nuget.org/v3/index.json -SkipDuplicate

run: dotnet nuget push src/bin/Release/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

0 comments on commit bb50c48

Please sign in to comment.