Skip to content

Commit 39852a6

Browse files
authored
Update nuget-publish.yml
1 parent 8323c0b commit 39852a6

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/nuget-publish.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,27 @@ jobs:
3838
/p:IncludeSymbols=true \
3939
/p:SymbolPackageFormat=snupkg
4040
41+
- name: NuGet login (Trusted Publishing)
42+
uses: NuGet/login@v1
43+
id: login
44+
with:
45+
user: CodeBeam
46+
4147
- name: List packages
4248
run: ls -la ./nupkgs
4349

44-
- name: Publish to NuGet (Trusted Publishing)
50+
- name: Publish packages
4551
run: |
46-
echo "🚀 Publishing packages..."
52+
echo "🚀 Publishing..."
4753
4854
for f in ./nupkgs/*.nupkg; do
49-
echo "📦 Publishing $f"
55+
echo "📦 $f"
5056
5157
dotnet nuget push "$f" \
58+
--api-key ${{ steps.login.outputs.NUGET_API_KEY }} \
5259
--source https://api.nuget.org/v3/index.json \
5360
--skip-duplicate \
54-
|| echo "❌ Failed: $f (continuing...)"
61+
|| echo "❌ Failed: $f"
5562
done
5663
5764
- name: Done

0 commit comments

Comments
 (0)