From a53bbe743ea7b5fa88f3ee726d8a307a907966bb Mon Sep 17 00:00:00 2001 From: wangjia <809946525@qq.com> Date: Mon, 6 Jul 2026 22:44:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20release-deploy=20=E5=90=88=E5=B9=B6?= =?UTF-8?q?=E4=B8=BA=E5=8D=95=E6=AC=A1=20download-artifact=20+=20flatten?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 首次 windows release-deploy 失败:两次 download-artifact 复用致 act 对只读缓存 action(pack idx 444)EACCES。改一次性下全部 artifact(dist-raw/)再 flatten 到 dist/。 Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_013nMthbVEmQquxBRKb9Fj8u --- .gitea/workflows/deploy-client.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/deploy-client.yml b/.gitea/workflows/deploy-client.yml index ddff978..68ec250 100644 --- a/.gitea/workflows/deploy-client.yml +++ b/.gitea/workflows/deploy-client.yml @@ -83,17 +83,19 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Download android artifact + # 一次性下所有 artifact(不带 name),避免同 job 内两次复用 download-artifact + # action → act 对其只读缓存 git 仓库做二次操作时 EACCES(pack idx 444)。 + - name: Download all artifacts uses: actions/download-artifact@v3 with: - name: android - path: dist/ + path: dist-raw/ - - name: Download windows artifact - uses: actions/download-artifact@v3 - with: - name: windows - path: dist/ + - name: Flatten artifacts into dist/ + shell: bash + run: | + mkdir -p dist + find dist-raw -type f -exec cp {} dist/ \; + echo "dist/ 内容:"; ls -la dist/ - name: Release → Forgejo env: