Skip to content

Commit e14dcf9

Browse files
authored
Update release.yml
1 parent e85af29 commit e14dcf9

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,15 @@ jobs:
4848

4949
- name: NuGet login (OIDC)
5050
uses: nuget/login@v1
51+
id: login
5152
with:
5253
user: ${{ secrets.NUGET_USERNAME }}
5354

5455
- name: Publish SDK to NuGet
55-
run: dotnet nuget push artifacts/packages/CodingWithCalvin.VsixSdk.${{ steps.version.outputs.VERSION }}.nupkg --source https://api.nuget.org/v3/index.json --skip-duplicate
56+
run: dotnet nuget push artifacts/packages/CodingWithCalvin.VsixSdk.${{ steps.version.outputs.VERSION }}.nupkg --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate
5657

5758
- name: Publish Templates to NuGet
58-
run: dotnet nuget push artifacts/packages/CodingWithCalvin.VsixSdk.Templates.${{ steps.version.outputs.VERSION }}.nupkg --source https://api.nuget.org/v3/index.json --skip-duplicate
59+
run: dotnet nuget push artifacts/packages/CodingWithCalvin.VsixSdk.Templates.${{ steps.version.outputs.VERSION }}.nupkg --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate
5960

6061
- name: Create GitHub Release
6162
uses: softprops/action-gh-release@v1
@@ -74,7 +75,7 @@ jobs:
7475
post_text: |
7576
🚀 CodingWithCalvin.VsixSdk v${{ needs.release.outputs.version }} has been released!
7677
77-
Build modern SDK-style Visual Studio extensions with ease.
78+
Build modern SDK-style Visual Studio extensions with ease!
7879
7980
[📋 Release Notes](https://github.com/${{ github.repository }}/releases/tag/v${{ needs.release.outputs.version }})
8081
[📦 NuGet](https://www.nuget.org/packages/CodingWithCalvin.VsixSdk)
@@ -94,7 +95,7 @@ jobs:
9495
post_text: |
9596
🚀 CodingWithCalvin.VsixSdk v${{ needs.release.outputs.version }} has been released!
9697
97-
Build modern SDK-style Visual Studio extensions with ease.
98+
Build modern SDK-style Visual Studio extensions with ease!
9899
99100
📋 Release Notes: https://github.com/${{ github.repository }}/releases/tag/v${{ needs.release.outputs.version }}
100101
📦 NuGet: https://www.nuget.org/packages/CodingWithCalvin.VsixSdk

0 commit comments

Comments
 (0)