feat(commands): multi-select ordered command pipeline with step reordering and single-pass composition (AI-05, AI-07)
This commit is contained in:
parent
f49acf0105
commit
10af20a0ad
157 changed files with 29455 additions and 913 deletions
|
|
@ -62,11 +62,27 @@ jobs:
|
|||
FORGEJO_TOKEN: "${{ secrets.FORGEJO_TOKEN }}"
|
||||
run: node scripts/ci/publish-portable-release.mjs
|
||||
|
||||
- name: 아티팩트 업로드
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: d3ro-voice-portable-${{ github.ref_name }}
|
||||
path: |
|
||||
apps/desktop/release/*/*-portable.7z.00*
|
||||
apps/desktop/release/*/portable.json
|
||||
bucket/d3ro-voice.json
|
||||
- name: 게시 요약 출력
|
||||
# Forgejo Actions 러너는 actions/upload-artifact@v4 의 GHES 스토리지 프로토콜을 지원하지 않으므로(GAP-REL-11),
|
||||
# 실제 배포 산출물은 앞 단계에서 Forgejo Generic Package Registry 에 이미 게시됐고 여기서는 해시 요약을 남긴다.
|
||||
run: |
|
||||
$version = node -p "require('./release/product-version.json').version"
|
||||
$manifestPath = "apps/desktop/release/$version/portable.json"
|
||||
if (-not (Test-Path $manifestPath)) {
|
||||
throw "portable.json 이 없습니다: $manifestPath"
|
||||
}
|
||||
$manifest = Get-Content $manifestPath -Raw | ConvertFrom-Json
|
||||
$summaryLines = @(
|
||||
"### Portable Release ($($manifest.version))",
|
||||
"- Volumes: $($manifest.volumeCount)",
|
||||
"- Total Size: $([math]::Round($manifest.totalSize / 1MB, 1)) MiB",
|
||||
"- Feed: https://git.chanpaca.net/api/packages/yunchan/generic/d3ro-voice/portable-$($manifest.version)/portable.json"
|
||||
)
|
||||
foreach ($vol in $manifest.volumes) {
|
||||
$summaryLines += " - ``$($vol.name)``: ``$($vol.sha256)``"
|
||||
}
|
||||
$summaryText = $summaryLines -join "`n"
|
||||
Write-Host $summaryText
|
||||
if ($env:GITHUB_STEP_SUMMARY) {
|
||||
Add-Content -Path $env:GITHUB_STEP_SUMMARY -Value $summaryText -Encoding utf8
|
||||
}
|
||||
|
|
@ -40,7 +40,30 @@ jobs:
|
|||
run: |
|
||||
$releaseVersion = node -p "require('./release/product-version.json').version"
|
||||
$url = "https://git.chanpaca.net/api/packages/yunchan/generic/d3ro-voice/$releaseVersion/latest.yml"
|
||||
try { Invoke-WebRequest -Uri $url -Method Get -UseBasicParsing | Out-Null; $published = 'true' } catch { $published = 'false' }
|
||||
$filesApiUrl = "https://git.chanpaca.net/api/v1/packages/yunchan/generic/d3ro-voice/$releaseVersion/files"
|
||||
$published = 'false'
|
||||
# 로컬 `npm run release` 는 annotated 태그를 먼저 푸시한 직후 설치본과 latest.yml 을 게시한다(GAP-REL-14).
|
||||
# 이미 올라왔거나 업로드 진행 중이면 완료될 때까지 대기해 CI 가 중복 빌드/충돌하지 않게 한다.
|
||||
for ($attempt = 0; $attempt -lt 10; $attempt++) {
|
||||
try {
|
||||
Invoke-WebRequest -Uri $url -Method Get -UseBasicParsing | Out-Null
|
||||
$published = 'true'
|
||||
break
|
||||
} catch {}
|
||||
if ($attempt -lt 9) {
|
||||
$inProgress = $false
|
||||
try {
|
||||
$files = Invoke-RestMethod -Uri $filesApiUrl -Method Get
|
||||
if ($files -and $files.Count -gt 0) { $inProgress = $true }
|
||||
} catch {}
|
||||
if ($attempt -lt 3 -or $inProgress) {
|
||||
Write-Host "로컬 릴리스 게시 확인 대기 중... ($($attempt + 1)/10)"
|
||||
Start-Sleep -Seconds 10
|
||||
continue
|
||||
}
|
||||
}
|
||||
break
|
||||
}
|
||||
"published=$published" >> $env:GITHUB_OUTPUT
|
||||
if ($published -eq 'true') { Write-Host "$releaseVersion 는 이미 피드에 있습니다 — 건너뜁니다." }
|
||||
|
||||
|
|
@ -61,4 +84,12 @@ jobs:
|
|||
FORGEJO_TOKEN: "${{ secrets.FORGEJO_TOKEN }}"
|
||||
D3RO_UPDATE_SIGNING_KEY: "${{ secrets.D3RO_UPDATE_SIGNING_KEY }}"
|
||||
FORGEJO_REPO: "${{ github.server_url }}/${{ github.repository }}"
|
||||
run: node scripts/ci/publish-forgejo-release.mjs
|
||||
run: |
|
||||
$releaseVersion = node -p "require('./release/product-version.json').version"
|
||||
$url = "https://git.chanpaca.net/api/packages/yunchan/generic/d3ro-voice/$releaseVersion/latest.yml"
|
||||
try {
|
||||
Invoke-WebRequest -Uri $url -Method Get -UseBasicParsing | Out-Null
|
||||
Write-Host "$releaseVersion 는 빌드 도중 로컬 릴리스에서 이미 게시됐습니다 — 게시 단계를 건너뜁니다."
|
||||
exit 0
|
||||
} catch {}
|
||||
node scripts/ci/publish-forgejo-release.mjs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue