mirror of
https://github.com/Devolutions/IronRDP.git
synced 2025-12-23 12:26:46 +00:00
[DEVOPS-3949] ci(nuget): use Trusted Publishing auth
This commit is contained in:
parent
a70e01d9c5
commit
d013e0149d
1 changed files with 9 additions and 1 deletions
10
.github/workflows/nuget-publish.yml
vendored
10
.github/workflows/nuget-publish.yml
vendored
|
|
@ -353,6 +353,8 @@ jobs:
|
|||
if: ${{ needs.preflight.outputs.dry-run == 'false' }}
|
||||
needs: [preflight, build-managed]
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- name: Download NuGet package artifact
|
||||
|
|
@ -361,6 +363,12 @@ jobs:
|
|||
name: ironrdp-nupkg
|
||||
path: package
|
||||
|
||||
- name: NuGet login (OIDC)
|
||||
id: nuget-login
|
||||
uses: NuGet/login@v1
|
||||
with:
|
||||
user: ${{ secrets.NUGET_BOT_USERNAME }}
|
||||
|
||||
- name: Publish to nuget.org
|
||||
run: |
|
||||
$Files = Get-ChildItem -Recurse package/*.nupkg
|
||||
|
|
@ -372,7 +380,7 @@ jobs:
|
|||
'push',
|
||||
"$File",
|
||||
'--api-key',
|
||||
'${{ secrets.NUGET_API_KEY }}',
|
||||
'${{ steps.nuget-login.outputs.NUGET_API_KEY }}',
|
||||
'--source',
|
||||
'https://api.nuget.org/v3/index.json',
|
||||
'--skip-duplicate'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue