diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 03a2ecc..ae10c92 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -15,12 +15,15 @@ jobs: run: | yarn config set registry https://registry.npm.taobao.org yarn add -D vitepress - - run: yarn docs:build - - run: tar -cvf dist.tar docs/.vitepress/dist - - name: Archive production artifacts - uses: actions/upload-artifact@v3 + - run: yarn docs:build + - name: Deploy to Server + uses: easingthemes/ssh-deploy@main with: - name: dist-with-everything.tar - path: | - dist.tar + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} + ARGS: "-rlgoDzvc -i --delete" + SOURCE: "docs/.vitepress/dist/" + REMOTE_HOST: ${{ secrets.REMOTE_HOST }} + REMOTE_USER: ${{ secrets.REMOTE_USER }} + REMOTE_PORT: ${{ secrets.REMOTE_PORT }} + TARGET: ${{ secrets.REMOTE_TARGET }} - run: echo "🍏 This job's status is ${{ job.status }}."