Skip to content

Commit 65facb6

Browse files
committed
Prepare UUIDNext.Cli 4.2.1 version
1 parent a206014 commit 65facb6

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

.github/workflows/nuget-cli.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@ defaults:
66
run:
77
working-directory: Src
88

9+
permissions:
10+
id-token: write # required for Nuget Trusted Publishing
11+
912
jobs:
1013
publish:
11-
1214
runs-on: ubuntu-latest
15+
16+
permissions:
17+
id-token: write # enable GitHub OIDC (OpenID Connect standard) token issuance for this job
1318

1419
steps:
1520
- uses: actions/checkout@v4
@@ -25,5 +30,13 @@ jobs:
2530
run: dotnet test -c Release --no-build --framework net8.0
2631
- name: Pack nugets
2732
run: dotnet pack "./UUIDNext.Cli/UUIDNext.Cli.csproj" -c Release --no-build --output .
33+
34+
# Get a short-lived NuGet API key
35+
- name: NuGet login (OIDC → temp API key)
36+
uses: NuGet/login@v1
37+
id: login
38+
with:
39+
user: ${{ secrets.NUGET_USER }}
40+
2841
- name: Push to NuGet
29-
run: dotnet nuget push "UUIDNext.Cli.*.nupkg" --api-key ${{secrets.NUGET_API_KEY}} --skip-duplicate --source https://api.nuget.org/v3/index.json
42+
run: dotnet nuget push "UUIDNext.Cli.*.nupkg" --api-key ${{steps.login.outputs.NUGET_API_KEY}} --skip-duplicate --source https://api.nuget.org/v3/index.json

Src/UUIDNext.Cli/UUIDNext.Cli.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<!--Nuget package information-->
1010
<PropertyGroup>
1111
<PackageId>UUIDNext.Cli</PackageId>
12-
<Version>4.2.0</Version>
12+
<Version>4.2.1</Version>
1313
<Authors>Matthieu Mourisson</Authors>
1414
<PackageLicenseExpression>0BSD</PackageLicenseExpression>
1515
<PackageTags>UUID;GUID;UUIDv5;UUIDv7;UUIDv8</PackageTags>
@@ -33,6 +33,6 @@
3333

3434
<ItemGroup>
3535
<PackageReference Include="TextCopy" Version="6.2.1" />
36-
<PackageReference Include="UUIDNext" Version="4.2.0" />
36+
<PackageReference Include="UUIDNext" Version="4.2.1" />
3737
</ItemGroup>
3838
</Project>

0 commit comments

Comments
 (0)