Skip to content

Conversation

@dion-gionet
Copy link
Contributor

@dion-gionet dion-gionet commented Nov 17, 2025

Issue: DEVOPS-3949

@dion-gionet dion-gionet requested a review from a team as a code owner November 17, 2025 21:51
@dion-gionet dion-gionet self-assigned this Nov 17, 2025
@dion-gionet dion-gionet requested a review from a team as a code owner November 17, 2025 21:51
@github-actions
Copy link

Let maintainers know that an action is required on their side

  • Add the label release-required Please cut a new release (Devolutions Gateway, Devolutions Agent, Jetsocat, PowerShell module) when you request a maintainer to cut a new release (Devolutions Gateway, Devolutions Agent, Jetsocat, PowerShell module)

  • Add the label release-blocker Follow-up is required before cutting a new release if a follow-up is required before cutting a new release

  • Add the label publish-required Please publish libraries (`Devolutions.Gateway.Utils`, OpenAPI clients, etc) when you request a maintainer to publish libraries (Devolutions.Gateway.Utils, OpenAPI clients, etc.)

  • Add the label publish-blocker Follow-up is required before publishing libraries if a follow-up is required before publishing libraries

@CBenoit CBenoit changed the title [DEVOPS-3949] ci(nuget): use Trusted Publishing auth ci(nuget): use Trusted Publishing auth Nov 18, 2025
@CBenoit CBenoit enabled auto-merge (squash) November 18, 2025 06:12
Copy link
Member

@CBenoit CBenoit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dion-gionet Please, can you also update the publish-libraries.yaml workflow?

nuget-publish:
name: Publish NuGet packages
environment: publish-prod
if: ${{ needs.preflight.outputs.dry_run == 'false' }}
needs: [preflight, nuget-merge]
runs-on: ubuntu-latest
steps:
- name: Download NuGet packages artifact
uses: actions/download-artifact@v4
with:
name: nupkg
path: nuget-packages
- name: Publish to nuget.org
run: |
Set-PSDebug -Trace 1
$Files = Get-ChildItem -Recurse nuget-packages/*.nupkg
foreach ($File in $Files) {
$PushCmd = @(
'dotnet',
'nuget',
'push',
"$File",
'--api-key',
'${{ secrets.NUGET_API_KEY }}',
'--source',
'https://api.nuget.org/v3/index.json',
'--skip-duplicate'
)
Write-Host "Publishing $($File.Name)..."
$PushCmd = $PushCmd -Join ' '
Invoke-Expression $PushCmd
}
shell: pwsh

Thank you!

@dion-gionet dion-gionet changed the title ci(nuget): use Trusted Publishing auth [DEVOPS-3949] ci(nuget): use Trusted Publishing auth Nov 20, 2025
@dion-gionet dion-gionet requested a review from CBenoit November 20, 2025 18:45
@dion-gionet dion-gionet force-pushed the devops/trustedpublishing branch from 519d4fa to add7b3e Compare November 20, 2025 19:03
@dion-gionet dion-gionet force-pushed the devops/trustedpublishing branch from add7b3e to 3820dd6 Compare November 20, 2025 19:05
@CBenoit CBenoit changed the title [DEVOPS-3949] ci(nuget): use Trusted Publishing auth ci(nuget): use Trusted Publishing auth Nov 21, 2025
@dion-gionet dion-gionet disabled auto-merge November 21, 2025 14:14
@dion-gionet dion-gionet merged commit 714bf5d into master Nov 21, 2025
70 of 80 checks passed
@dion-gionet dion-gionet deleted the devops/trustedpublishing branch November 21, 2025 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants