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 <noreply@anthropic.com>
This commit is contained in:
KenanZhuandClaude committed 2026-06-23 11:15:07 +08:00
1 parent aa7e8d6e06
commit 5ba174a399
1 file changed
+2 -2
+2 -2
View File
@@ -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}"