File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ jobs:
119119    if : startsWith(github.ref, 'refs/tags/') 
120120    permissions :
121121      contents : write 
122+       id-token : write 
122123    name : 🐿 Publish 
123124    steps :
124125      - name : 📥 Download NuGet package artifact 
@@ -136,5 +137,10 @@ jobs:
136137          body_path : ReleaseNotes.md 
137138          prerelease : ${{ contains(github.ref_name, '-') }} 
138139          files : " *.nupkg" 
140+       - name : 🔑 Retrieve NuGet API key 
141+         uses : NuGet/login@v1 
142+         id : nuget-login 
143+         with :
144+           user : 0xced 
139145      - name : 🚀 Publish NuGet package on nuget.org 
140-         run : dotnet nuget push "*.nupkg" --source https://api.nuget.org/v3/index.json --api-key "${{ secrets .NUGET_API_KEY }}" 
146+         run : dotnet nuget push "*.nupkg" --source https://api.nuget.org/v3/index.json --api-key "${{ steps.nuget-login.outputs .NUGET_API_KEY }}" 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments