From 3d6ddf6ca6a5447e0e1056653ba1fa77e74371ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danny=20B=C3=A9dard?= Date: Tue, 24 Sep 2024 14:31:51 -0400 Subject: [PATCH] test --- .github/workflows/jetify.yml | 43 ++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/.github/workflows/jetify.yml b/.github/workflows/jetify.yml index 948e036dc..c4dd381dc 100644 --- a/.github/workflows/jetify.yml +++ b/.github/workflows/jetify.yml @@ -1,6 +1,7 @@ name: jetify on: + push: workflow_dispatch: inputs: version: @@ -60,7 +61,7 @@ jobs: } else { "publish-test" } - + if (-Not $IsMasterBranch) { $DryRun = $true # force dry run when not on master branch } @@ -230,7 +231,7 @@ jobs: } Remove-Item $PackedFile -ErrorAction SilentlyContinue | Out-Null Compress-Archive -Path "$UnpackedDir\*" -Destination $PackedFile -CompressionLevel Optimal - + - name: Code sign nuget package if: ${{ fromJSON(needs.preflight.outputs.sign-nuget) == true }} shell: pwsh @@ -245,7 +246,7 @@ jobs: '-tr', '${{ vars.CODE_SIGNING_TIMESTAMP_SERVER }}', '-v') & NuGetKeyVaultSignTool @Params - + - name: Upload nuget package uses: actions/upload-artifact@v4 with: @@ -266,21 +267,21 @@ jobs: name: Jetify-nupkg path: package - - name: Publish to nuget.org - shell: pwsh - run: | - $DryRun = [System.Boolean]::Parse('${{ needs.preflight.outputs.dry-run }}') - $NugetPackage = (Get-Item ./package/*.nupkg) | Resolve-Path -Relative - - $PushArgs = @( - 'nuget', 'push', "$NugetPackage", - '--api-key', '${{ secrets.NUGET_API_KEY }}', - '--source', 'https://api.nuget.org/v3/index.json', - '--skip-duplicate', '--no-symbols' - ) - Write-Host "dotnet $($PushArgs -Join ' ')" - if ($DryRun) { - Write-Host "Dry Run: skipping nuget.org publishing!" - } else { - & 'dotnet' $PushArgs - } + # - name: Publish to nuget.org + # shell: pwsh + # run: | + # $DryRun = [System.Boolean]::Parse('${{ needs.preflight.outputs.dry-run }}') + # $NugetPackage = (Get-Item ./package/*.nupkg) | Resolve-Path -Relative + + # $PushArgs = @( + # 'nuget', 'push', "$NugetPackage", + # '--api-key', '${{ secrets.NUGET_API_KEY }}', + # '--source', 'https://api.nuget.org/v3/index.json', + # '--skip-duplicate', '--no-symbols' + # ) + # Write-Host "dotnet $($PushArgs -Join ' ')" + # if ($DryRun) { + # Write-Host "Dry Run: skipping nuget.org publishing!" + # } else { + # & 'dotnet' $PushArgs + # }