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:
|
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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user