File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 1- name : Release
1+ name : Release
22
33on :
44 release :
1010 NUGET_PATH : ' ./**/IeuanWalker.Maui.Breadcrumb.${{ github.event.release.tag_name }}.nupkg'
1111
1212jobs :
13- build :
13+ build-and-publish :
14+ permissions :
15+ id-token : write # enable GitHub OIDC token issuance for this job
16+
1417 runs-on : windows-latest
1518
1619 steps :
4245 path : ${{ env.NUGET_PATH }}
4346
4447 - name : Setup NuGet
45- uses : NuGet/setup-nuget@v1.0.6
48+ uses : NuGet/setup-nuget@v1.1.1
4649
50+ # Get a short-lived NuGet API key
51+ - name : NuGet login (OIDC → temp API key)
52+ uses : NuGet/login@v1
53+ id : login
54+ with :
55+ user : Ieuan
56+
4757 - name : Publish
48- run : nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets. NUGET_API_KEY}}
58+ run : nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{steps.login.outputs. NUGET_API_KEY}}
You can’t perform that action at this time.
0 commit comments