File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 1111 types : [opened, reopened, synchronize]
1212 merge_group :
1313
14+ permissions :
15+ id-token : write
16+ contents : write
17+ actions : write
18+ checks : write
19+ issues : write
20+
1421jobs :
1522 build-test :
1623 name : Build & Test & Release
2835 uses : docker/setup-buildx-action@v3
2936
3037 - name : Semantic Release Dry Run
31- uses : cycjimmy/semantic-release-action@v4
38+ uses : cycjimmy/semantic-release-action@v5
3239 id : semantic
3340 with :
3441 dry_run : true
@@ -87,16 +94,23 @@ jobs:
8794
8895 - name : Semantic Release
8996 if : steps.semantic.outputs.new_release_published == 'true'
90- uses : cycjimmy/semantic-release-action@v4
97+ uses : cycjimmy/semantic-release-action@v5
9198 env :
9299 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
93100 with :
94101 extra_plugins : |
95102 conventional-changelog-conventionalcommits
96103
104+ - name : NuGet login (OIDC → temp API key)
105+ if : steps.semantic.outputs.new_release_published == 'true'
106+ uses : NuGet/login@v1
107+ id : login
108+ with :
109+ user : IvanJosipovic
110+
97111 - name : .NET NuGet Push
98112 if : steps.semantic.outputs.new_release_published == 'true'
99- run : dotnet nuget push src/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets. NUGET_API_KEY }}
113+ run : dotnet nuget push src/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{steps.login.outputs. NUGET_API_KEY}}
100114
101115 - name : Docker Push
102116 if : steps.semantic.outputs.new_release_published == 'true'
You can’t perform that action at this time.
0 commit comments