mirror of
https://github.com/omegaleo/SecretSecurity.git
synced 2026-11-09 01:53:31 +00:00
Updated workflow
This commit is contained in:
@@ -11,6 +11,7 @@ jobs:
|
||||
permissions:
|
||||
contents: write
|
||||
packages: write
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -35,6 +36,18 @@ jobs:
|
||||
-p:Version=${{ steps.version.outputs.VERSION }}
|
||||
--output ./nupkg
|
||||
|
||||
- name: NuGet login (OIDC trusted publishing)
|
||||
uses: NuGet/login@v1
|
||||
id: nuget-login
|
||||
with:
|
||||
user: ${{ secrets.NUGET_USER }}
|
||||
|
||||
- name: Push to NuGet.org
|
||||
run: >
|
||||
dotnet nuget push ./nupkg/*.nupkg
|
||||
--api-key ${{ steps.nuget-login.outputs.NUGET_API_KEY }}
|
||||
--source https://api.nuget.org/v3/index.json
|
||||
|
||||
- name: Push to GitHub Packages
|
||||
run: >
|
||||
dotnet nuget push ./nupkg/*.nupkg
|
||||
|
||||
Reference in New Issue
Block a user