Skip to content

Commit

Permalink
ci(nuget-push): Update symbol package generation and publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
SakuraIsayeki committed May 11, 2024
1 parent 0936843 commit f43eace
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/nuget-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,27 +63,26 @@ jobs:
run: dotnet build -c Release --no-restore

- name: Package
run: dotnet pack -c Release --no-build
run: dotnet pack -c Release --no-build --include-symbols

- id: is-public-release
uses: ASzc/change-string-case-action@v6
with:
string: ${{ steps.nbgv.outputs.PublicRelease }}

- name: Attest build provenance for .nupkgs
- name: Attest build provenance for .(s)nupkgs
uses: actions/attest-build-provenance@v1
# Only once per package: take nuget provider
if: matrix.nuget.name == 'NuGet'
with:
subject-path: "**/Release/*nupkg"

# Publish
- name: Build, Pack & Publish to ${{ matrix.nuget.name }}
- name: Publish packages to ${{ matrix.nuget.name }}
run: |
dotnet nuget push "**/Release/*nupkg" \
dotnet nuget push "**/Release/*.nupkg" \
--source "${{ matrix.nuget.source }}" \
--symbol-source "${{ matrix.nuget.source }}" \
--api-key "${{ secrets[matrix.nuget.keyname] }}" \
--symbol-api-key "${{ secrets[matrix.nuget.keyname] }}" \
--skip-duplicate ${{ steps.is-public-release.outputs.string }}
--skip-duplicate

0 comments on commit f43eace

Please sign in to comment.