Skip to content

Commit 0aff11d

Browse files
committed
Update NuGet workflow for package publishing
- Changed API key usage to use secrets for security - Updated command syntax for pushing the package to NuGet
1 parent 51a9908 commit 0aff11d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/nuget.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ jobs:
3535
- name: Create the package
3636
run: dotnet pack --configuration Release /p:AssemblyVersion=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} /p:Version=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} MauiKeyboardEffects/MauiKeyboardEffects.csproj
3737
- name: Publish the package to NuGet
38-
run: dotnet nuget push MauiKeyboardEffects/bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
38+
run: dotnet nuget push MauiKeyboardEffects/bin/Release/*.nupkg --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json
3939
env:
4040
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }}

0 commit comments

Comments
 (0)