From fbfb136dc97d4adc28ca96fa15cf0553f09f5346 Mon Sep 17 00:00:00 2001 From: snowtafir Date: Sun, 4 Aug 2024 16:51:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96github=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-deploy.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-deploy.yaml b/.github/workflows/build-deploy.yaml index d41f688..859d45d 100644 --- a/.github/workflows/build-deploy.yaml +++ b/.github/workflows/build-deploy.yaml @@ -48,7 +48,7 @@ jobs: run: ls -l - name: 🚚 移动构建文件到临时目录 - run: mv ./dist/* ../temp_dist/ + run: cp -a ./dist/. ../temp_dist/ - name: 🛠️ 配置Git用户信息 run: | @@ -71,7 +71,7 @@ jobs: run: find . -mindepth 1 -maxdepth 1 ! -name '.git' -exec rm -rf {} + - name: 🚚 从临时目录移动文件到当前目录 - run: mv ./../temp_dist/* ./ + run: cp -a ./../temp_dist/. ./ - name: 🗑️ 删除临时目录 run: rm -rf ./../temp_dist