Skip to content

Commit 9c36e17

Browse files
committed
Make NuGet publish secure
1 parent 2b3ba78 commit 9c36e17

2 files changed

Lines changed: 1 addition & 16 deletions

File tree

.github/workflows/continuous.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,5 @@ jobs:
2424
dotnet-version: |
2525
6.0.x
2626
27-
- name: Cache .nuke/temp, ~/.nuget/packages
28-
uses: actions/cache@v4
29-
with:
30-
path: |
31-
.nuke/temp
32-
~/.nuget/packages
33-
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
34-
3527
- name: Run './build.cmd Verify Cover Pack'
3628
run: ./build.cmd Verify Cover Pack --no-logo

.github/workflows/release.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
name: windows-latest
1111
runs-on: windows-latest
1212

13+
environment: nuget-push
1314
permissions:
1415
id-token: write
1516

@@ -30,14 +31,6 @@ jobs:
3031
dotnet-version: |
3132
6.0.x
3233
33-
- name: Cache .nuke/temp, ~/.nuget/packages
34-
uses: actions/cache@v4
35-
with:
36-
path: |
37-
.nuke/temp
38-
~/.nuget/packages
39-
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
40-
4134
- name: Run './build.cmd Verify Cover Publish'
4235
run: ./build.cmd Verify Cover Publish --no-logo
4336
env:

0 commit comments

Comments
 (0)