File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed
Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change 11name : build
2-
2+ permissions :
3+ id-token : write # required for GitHub OIDC
34on :
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
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
You can’t perform that action at this time.
0 commit comments