Skip to content

Commit

Permalink
chore: Use Nuget.exe
Browse files Browse the repository at this point in the history
Even with v3 specified, the dotnet nuget push was referencing v2 causing builds to continuously fail on the symbols
  • Loading branch information
ArcaneTSGK authored Jul 30, 2024
1 parent 3673d70 commit d25660c
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ jobs:
build:
name: Build
runs-on: windows-2022
env:
CREATE_RELEASE: ${{ github.ref_name == 'main' && !contains(github.event.head_commit.message, 'dependabot[bot]') }}
CREATE_PRERELEASE: ${{ github.ref_name != 'main' }}
steps:
- name: checkout
uses: actions/[email protected]
Expand All @@ -44,9 +41,10 @@ jobs:
with:
name: package
path: .\artifacts\packages
- name: Push NuGet package on main branch
if: ${{ env.CREATE_RELEASE == 'true' }}
run: dotnet nuget push .\artifacts\packages\ --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_ACTIONS }} --symbol-source https://api.nuget.org/v3/index.json --skip-duplicate
- name: Push NuGet package on feature branch
if: ${{ env.CREATE_PRERELEASE == 'true' }}
run: dotnet nuget push .\artifacts\packages\ --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_ACTIONS }} --symbol-source https://api.nuget.org/v3/index.json --skip-duplicate
- uses: NuGet/[email protected]
name: Push NuGet package
with:
nuget-api-key: ${{ secrets.NUGET_ACTIONS }}
nuget-api-key-source: https://api.nuget.org/v3/index.json
- run: nuget push .\artifacts\packages -SkipDuplicate -NonInteractive

0 comments on commit d25660c

Please sign in to comment.