From 5ba174a3994e32dd638a9d59d501af7b0417ca15 Mon Sep 17 00:00:00 2001 From: KenanZhu <3471685733@qq.com> Date: Tue, 23 Jun 2026 11:15:07 +0800 Subject: [PATCH] fix(ci): create archive dir before copying files in release workflow cp -r requires the target directory to exist. Changed to mkdir -p the full archive path instead of just dist/. Co-Authored-By: Claude --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 35e22ca..af7a37f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,8 +32,8 @@ jobs: run: | VERSION=${GITHUB_REF#refs/tags/} ARCHIVE="gitea-mail-templates-${VERSION}" - mkdir -p dist - cp -r themes LICENSE README.md COMPATIBILITY.md "dist/${ARCHIVE}" + mkdir -p "dist/${ARCHIVE}" + cp -r themes LICENSE README.md COMPATIBILITY.md "dist/${ARCHIVE}/" cd dist zip -r "${ARCHIVE}.zip" "${ARCHIVE}" tar -czf "${ARCHIVE}.tar.gz" "${ARCHIVE}"