From 1519cc10356b9798f85be234ac8e6791b6fb30ef Mon Sep 17 00:00:00 2001 From: tiye Date: Mon, 5 Oct 2026 00:48:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20COS=20=E5=86=85=E7=BD=AE?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E4=B8=8E=E9=9A=94=E7=A6=BB=20CDN=20=E9=87=8D?= =?UTF-8?q?=E8=AF=95=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/upload.yaml | 8 +++++--- README.md | 12 ++++++++++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/upload.yaml b/.github/workflows/upload.yaml index bdf274b..a7b89fc 100644 --- a/.github/workflows/upload.yaml +++ b/.github/workflows/upload.yaml @@ -10,7 +10,8 @@ on: pull_request: {} concurrency: - group: cos-upload-${{ github.repository }}-${{ github.event_name == 'pull_request' && format('pr-{0}-{1}', github.event.pull_request.number, github.run_id) || 'production' }} + group: cos-upload-${{ github.repository }}-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || 'production' }} + queue: max cancel-in-progress: false jobs: @@ -67,8 +68,9 @@ jobs: env: PR_NUMBER: ${{ github.event.pull_request.number }} run: | + set -euo pipefail if [[ "$GITHUB_EVENT_NAME" == "pull_request" ]]; then - prefix="${GITHUB_REPOSITORY}/pr/${PR_NUMBER}/${GITHUB_RUN_ID}/" + prefix="${GITHUB_REPOSITORY}/pr/${PR_NUMBER}/${GITHUB_RUN_ID}/${GITHUB_RUN_ATTEMPT}/" else prefix="${GITHUB_REPOSITORY}/" fi @@ -104,7 +106,7 @@ jobs: - name: Upload and verify frontend assets if: steps.cos-credentials.outputs.available == 'true' - uses: worktools/cos-upload-action@17e6d213fe9f6772a6090a13c8ba044cd6cbcb09 # v1.1.1 + uses: worktools/cos-upload-action@06d6027dcca6413c5936e04a9b6e9f0d5ef71ba0 # v1.2.0 with: source-dir: dist bucket: ${{ secrets.COS_BUCKET }} diff --git a/README.md b/README.md index dac87de..a1043bb 100644 --- a/README.md +++ b/README.md @@ -25,11 +25,19 @@ typed Reel rendering test, and checks all application public definitions. Frontend build uses `VITE_BASE_URL`, pointing to `https://cos-sh.tiye.me/Respo/markup/` on main and -`https://cos-sh.tiye.me/Respo/markup/pr///` for PR previews. -COS action v1.1.1 uploads `dist` and verifies through `public-base-url`; +`https://cos-sh.tiye.me/Respo/markup/pr////` for PR previews. +COS action v1.2.0 uploads `dist` and verifies through `public-base-url`; no separate upload verification script is needed. Production server deployment keeps its original source and destination; PRs do not deploy to the server. +同一 PR 的上传使用独立队列,生产上传使用另一个队列;保留排队任务, +不取消正在执行的上传。每次运行及重试使用不同预览路径,生产路径不变。 +Action 固定到正式 v1.2.0 的已审查提交,验证由 Action 内置能力完成。 + +本轮仅更新 COS/CDN 配置,不改变 Calcit 0.27.0、既有模块版本、类型门禁 +和业务测试。独立 Calcit 0.28.0 候选仍被共享 JS-FFI 的 +`KeyboardEventHost` 类型断言阻塞;本轮成功不代表完整 0.28 升级完成。 + ### Workflow https://github.com/calcit-lang/respo-calcit-workflow