Skip to content

Commit 04e9025

Browse files
committed
ci: update github action deploy_docs workflow
1 parent c76da1b commit 04e9025

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/deploy_docs.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,14 @@ jobs:
2323
uses: peaceiris/actions-gh-pages@v3
2424
with:
2525
github_token: ${{ secrets.GITHUB_TOKEN }}
26-
publish_dir: docs/.vuepress/dist/vuepress-plugin-demo-container/
26+
publish_dir: docs/.vuepress/dist/vuepress-plugin-demo-container/
27+
28+
- name: Deploy to server
29+
uses: easingthemes/ssh-deploy@v2.1.1
30+
env:
31+
SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }}
32+
ARGS: "-rltgoDzvO --delete"
33+
SOURCE: "docs/.vuepress/dist/vuepress-plugin-demo-container/"
34+
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
35+
REMOTE_USER: ${{ secrets.REMOTE_USER }}
36+
TARGET: ${{ secrets.REMOTE_TARGET }}

0 commit comments

Comments
 (0)