publish: 1.0.0 snapshot (d5f0492)

channel: master
version: 1.0.0
source-ref: master
published-at-utc: 2026-03-13T15:38:49Z
This commit is contained in:
Ant Browser Release Bot
2026-03-13 23:38:49 +08:00
parent 79929f24ea
commit b50e48205e
2 changed files with 8 additions and 5 deletions
+5 -3
View File
@@ -5,10 +5,12 @@ set "SCRIPT_DIR=%~dp0"
powershell -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%publish-public.ps1" -AllowDirtyWorkingTree %*
set "EXIT_CODE=%ERRORLEVEL%"
if not "%EXIT_CODE%"=="0" (
echo.
echo.
if "%EXIT_CODE%"=="0" (
echo Publish finished successfully.
) else (
echo Publish failed with exit code %EXIT_CODE%.
pause
)
pause
endlocal & exit /b %EXIT_CODE%
+3 -2
View File
@@ -529,12 +529,13 @@ function Publish-BranchRef {
[Parameter(Mandatory = $true)]
[string]$Commitish,
[string]$RemoteExpectedOid,
[switch]$AllowRewrite,
[switch]$DryRun
)
$refSpec = "${Commitish}:refs/heads/$BranchName"
$leaseArg = ""
if ((Get-TrimmedText $RemoteExpectedOid) -ne "") {
if ($AllowRewrite -and ((Get-TrimmedText $RemoteExpectedOid) -ne "")) {
$leaseArg = "--force-with-lease=refs/heads/${BranchName}:${RemoteExpectedOid}"
}
@@ -749,7 +750,7 @@ try {
if ($shouldPublishRelease) {
Write-Step "Publishing release branch ref $releaseBranch"
Publish-BranchRef -RemoteName "public" -BranchName $releaseBranch -Commitish $publishedCommit -RemoteExpectedOid $releaseRemoteOid -DryRun:$publishDryRun
Publish-BranchRef -RemoteName "public" -BranchName $releaseBranch -Commitish $publishedCommit -RemoteExpectedOid $releaseRemoteOid -AllowRewrite -DryRun:$publishDryRun
}
if ($shouldPublishTag) {