Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyBedard committed Sep 24, 2024
1 parent 92508d1 commit 706e645
Showing 1 changed file with 23 additions and 22 deletions.
45 changes: 23 additions & 22 deletions .github/workflows/jetify.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: jetify

on:
push:
workflow_dispatch:
inputs:
version:
Expand Down Expand Up @@ -60,7 +61,7 @@ jobs:
} else {
"publish-test"
}
if (-Not $IsMasterBranch) {
$DryRun = $true # force dry run when not on master branch
}
Expand Down Expand Up @@ -134,7 +135,7 @@ jobs:
run: |
Enter-VsDevShell ${{matrix.arch}}
$GitCommit = '${{ needs.preflight.outputs.detours-git-commit }}'
.\detours.ps1 -GitCommit $GitCommit
.\jetify\detours.ps1 -GitCommit $GitCommit
- name: Save Detours Cache (${{matrix.arch}})
if: steps.cache-detours.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -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
Expand All @@ -245,7 +246,7 @@ jobs:
'-tr', '${{ vars.CODE_SIGNING_TIMESTAMP_SERVER }}',
'-v')
& NuGetKeyVaultSignTool @Params
- name: Upload nuget package
uses: actions/upload-artifact@v4
with:
Expand All @@ -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
# }

0 comments on commit 706e645

Please sign in to comment.