Updated workflow

This commit is contained in:
2026-06-17 17:01:04 +01:00
parent c681cef2b1
commit 0de201bbed
2 changed files with 14 additions and 1 deletions
+13
View File
@@ -11,6 +11,7 @@ jobs:
permissions: permissions:
contents: write contents: write
packages: write packages: write
id-token: write
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -35,6 +36,18 @@ jobs:
-p:Version=${{ steps.version.outputs.VERSION }} -p:Version=${{ steps.version.outputs.VERSION }}
--output ./nupkg --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 - name: Push to GitHub Packages
run: > run: >
dotnet nuget push ./nupkg/*.nupkg dotnet nuget push ./nupkg/*.nupkg
+1 -1
View File
@@ -24,7 +24,7 @@ Dev-safe connections (localhost, 127.0.0.1, integrated security) are automatical
Requires [.NET 10 SDK](https://dotnet.microsoft.com/download) or later. Requires [.NET 10 SDK](https://dotnet.microsoft.com/download) or later.
```bash ```bash
dotnet tool install --global SecretSecurity --add-source https://nuget.pkg.github.com/omegaleo/index.json dotnet tool install --global SecretSecurity
``` ```
## Usage ## Usage