Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/<number>/<run-id>/` for PR previews.
COS action v1.1.1 uploads `dist` and verifies through `public-base-url`;
`https://cos-sh.tiye.me/Respo/markup/pr/<number>/<run-id>/<attempt>/` 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
Expand Down