try to deplay on server
Some checks failed
Build every docs on push / Explore-Gitea-Actions-docker (push) Failing after 2m4s

This commit is contained in:
chengsiyuan 2023-08-07 12:44:34 +08:00
parent 25d0ddabe5
commit 375d21a1f2

View File

@ -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 }}."