diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 939acb7..a6c0532 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -23,10 +23,8 @@ jobs: - name: Build Project run: npm run build # 🎯 編譯出 dist 資料夾 - - name: Copy Files via Docker Volume Mount - run: | - # 用一個帶有掛載的臨時小容器,把目前工作區的 dist,直接同步到主機實體的 1Panel 目錄下 - docker run --rm \ - -v $(pwd)/dist:/src_dist \ - -v /www/sites/fin-buddy.duckdns.org:/target_site \ - alpine sh -c "mkdir -p /target_site/index && cp -r /src_dist/* /target_site/index/ && chmod -R 755 /target_site/index" \ No newline at end of file + - name: Upload Build Artifact + uses: actions/upload-artifact@v3 + with: + name: frontend-dist + path: dist/ \ No newline at end of file