Skip to content

Commit

Permalink
feat: 调整自动执行程序
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 2, 2024
1 parent de86d6c commit 085ce6b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@ jobs:
run: npm ci

- name: Build VitePress site
run: npx vitepress build
run: |
npx vitepress build
ls -a ./vitepress;
ls -a ./vitepress/dist;
echo "${{ secrets.SSH_PRIVATE_KEY }}" > private_key && chmod 600 private_key;
scp -r -i ./private_key -o StrictHostKeyChecking=no ./vitepress/dist ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }}:/var/www/html/z-doc;
rm -f ./private_key;
- name: Upload to server via SCP
run: |
Expand Down

0 comments on commit 085ce6b

Please sign in to comment.