mirror of
https://github.com/black-ant/Ant-Browser.git
synced 2026-07-14 18:48:55 +08:00
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:
@@ -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%
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user