Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions .github/workflows/BuildDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ jobs:
uses: actions/upload-artifact@v7
with:
name: unsigned-nuget
path: packages/*.nupkg
path: |
packages/*.nupkg
!packages/*.symbols.nupkg
if-no-files-found: error

sign:
Expand Down Expand Up @@ -382,7 +384,9 @@ jobs:
uses: actions/upload-artifact@v7
with:
name: signed-nuget
path: signed/*.nupkg
path: |
signed/*.nupkg
!signed/*.symbols.nupkg
if-no-files-found: error

publish-nuget:
Expand Down Expand Up @@ -411,8 +415,17 @@ jobs:
- name: Push to NuGet
shell: bash
run: |
for pkg in ./signed/*.nupkg; do
dotnet nuget push "$pkg" --source https://api.nuget.org/v3/index.json --api-key "${{ steps.nuget-login.outputs.NUGET_API_KEY }}"
set -euo pipefail
shopt -s nullglob

packages=(./signed/*.nupkg)
[ "${#packages[@]}" -gt 0 ] || { echo "::error::no publishable packages matched: ./signed/*.nupkg"; exit 1; }

for pkg in "${packages[@]}"; do
dotnet nuget push "$pkg" \
--source https://api.nuget.org/v3/index.json \
--api-key "${{ steps.nuget-login.outputs.NUGET_API_KEY }}" \
--skip-duplicate
done

create-release:
Expand Down
1 change: 0 additions & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<DebugType>embedded</DebugType>
<IncludeSymbols>true</IncludeSymbols>

<!-- Include PDB in the built .nupkg -->
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
Expand Down
Loading