feat: automate business upgrades and sync reviewed frontend
This commit is contained in:
@@ -47,7 +47,11 @@ try {
|
||||
foreach ($name in @('deploy.sh', 'wait-backend.sh', 'bt-nginx-sw2.fuhua91.com.conf')) {
|
||||
Copy-Item -LiteralPath (Join-Path $PSScriptRoot $name) -Destination (Join-Path $stage $name)
|
||||
}
|
||||
Copy-Item -LiteralPath (Join-Path $PSScriptRoot '..\migrations') -Destination (Join-Path $stage 'migrations') -Recurse
|
||||
$migrationOutput = Join-Path $stage 'migrations'
|
||||
New-Item -ItemType Directory -Force -Path $migrationOutput | Out-Null
|
||||
Get-ChildItem -LiteralPath (Join-Path $PSScriptRoot '..\migrations') -Filter '*.sql' -File | ForEach-Object {
|
||||
Copy-Item -LiteralPath $_.FullName -Destination $migrationOutput
|
||||
}
|
||||
& tar -czf $archive -C $stage .
|
||||
if ($LASTEXITCODE -ne 0) { throw 'Release archive failed' }
|
||||
$hash = (Get-FileHash -LiteralPath $archive -Algorithm SHA256).Hash.ToLowerInvariant()
|
||||
|
||||
Reference in New Issue
Block a user