Skip to content

Commit 121fcc1

Browse files
committed
Update dotnetTools.yml
1 parent c985823 commit 121fcc1

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/dotnetTools.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: build
2-
2+
permissions:
3+
id-token: write # required for GitHub OIDC
34
on:
45
push:
56
branches: [ master ]
@@ -11,15 +12,16 @@ jobs:
1112
build:
1213

1314
runs-on: windows-latest
15+
permissions:
16+
id-token: write
17+
contents: write
1418

1519
steps:
1620
- uses: actions/checkout@v2
1721
- name: Setup .NET Core
18-
uses: actions/setup-dotnet@v3
22+
uses: actions/setup-dotnet@v5
1923
with:
2024
dotnet-version: |
21-
8.0.x
22-
9.0.x
2325
10.0.x
2426
2527
- name: Install dependencies
@@ -81,8 +83,15 @@ jobs:
8183
# path: |
8284
# src/NetCore2Blockly/NetCore2BlocklyNew/netcoreb
8385
# retention-days: 1
86+
8487

88+
- name: NuGet Login
89+
uses: NuGet/login@v1
90+
id: login
91+
with:
92+
user: ignatandrei
93+
8594
- name: push to nuget
8695
run: |
8796
dir ${{github.workspace}}\src\NetCore2Blockly\NetCore2BlocklyNew\netcoreb\NetCore2Blockly*symbols.nupkg
88-
dotnet nuget push ${{github.workspace}}\src\NetCore2Blockly\NetCore2BlocklyNew\netcoreb\NetCore2Blockly*symbols.nupkg --api-key ${{ secrets.NUGETAPIKEY }} --source https://api.nuget.org/v3/index.json
97+
dotnet nuget push ${{github.workspace}}\src\NetCore2Blockly\NetCore2BlocklyNew\netcoreb\NetCore2Blockly*symbols.nupkg --api-key "${{ steps.login.outputs.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)