mirror of
https://github.com/containers/podman.git
synced 2025-12-01 18:49:18 +08:00
Merge pull request #23324 from ashley-cui/win
Use uploaded .zip for Windows action
This commit is contained in:
25
.github/workflows/upload-win-installer.yml
vendored
25
.github/workflows/upload-win-installer.yml
vendored
@@ -78,12 +78,11 @@ jobs:
|
|||||||
# The podman release process requires a cross-compile of the windows binaries be uploaded to
|
# The podman release process requires a cross-compile of the windows binaries be uploaded to
|
||||||
# the release page as a hard-coded filename. If non-existent, this workflow will fail in
|
# the release page as a hard-coded filename. If non-existent, this workflow will fail in
|
||||||
# non-obvious ways with a non-obvious error message. Address that here.
|
# non-obvious ways with a non-obvious error message. Address that here.
|
||||||
# TODO: Remove this in a future PR once verified to not cause artifact issues
|
- name: Confirm upload_asset_name is non-empty
|
||||||
#- name: Confirm upload_asset_name is non-empty
|
if: steps.check.outputs.upload_asset_name == ''
|
||||||
# if: steps.check.outputs.upload_asset_name == '' && github.event_name != 'pull_request'
|
run: |
|
||||||
# run: |
|
Write-Output "::error::check.ps1 script failed to find manually uploaded podman-remote-release-windows_amd64.zip github release asset for version ${{steps.getversion.outputs.version}}."
|
||||||
# Write-Output "::error::check.ps1 script failed to find manually uploaded podman-remote-release-windows_amd64.zip github release asset for version ${{steps.getversion.outputs.version}}."
|
Exit 1
|
||||||
# Exit 1
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
# N/B: already-exists may be an empty-string or "false", handle both cases.
|
# N/B: already-exists may be an empty-string or "false", handle both cases.
|
||||||
@@ -109,10 +108,16 @@ jobs:
|
|||||||
id: build
|
id: build
|
||||||
if: steps.check.outputs.already-exists != 'true' || steps.actual_dryrun.outputs.dryrun == 'true'
|
if: steps.check.outputs.already-exists != 'true' || steps.actual_dryrun.outputs.dryrun == 'true'
|
||||||
run: |
|
run: |
|
||||||
.\winmake.ps1 podman
|
Push-Location contrib\win-installer
|
||||||
.\winmake.ps1 win-gvproxy
|
.\build.ps1 ${{steps.getversion.outputs.version}} prod
|
||||||
.\winmake.ps1 docs
|
$code = $LASTEXITCODE
|
||||||
.\winmake.ps1 installer
|
if ($code -eq 2) {
|
||||||
|
Write-Output "artifact-missing=true" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
|
||||||
|
Pop-Location
|
||||||
|
Exit 0
|
||||||
|
}
|
||||||
|
Pop-Location
|
||||||
|
Exit $code
|
||||||
- name: Artifact
|
- name: Artifact
|
||||||
if: steps.check.outputs.already-exists != 'true' || steps.actual_dryrun.outputs.dryrun == 'true'
|
if: steps.check.outputs.already-exists != 'true' || steps.actual_dryrun.outputs.dryrun == 'true'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user