Skip to content

Commit

Permalink
Deploy to Server
Browse files Browse the repository at this point in the history
  • Loading branch information
Xutaotaotao committed Apr 30, 2024
1 parent f37cd91 commit fa6ec5f
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,21 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v2
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: github-pages
path: artifact
- name: Extract artifact
run: tar -xf artifact/*.tar --directory artifact

- name: Deploy to Server
uses: easingthemes/[email protected]
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: '-rltgoDzvO --delete'
SOURCE: artifact/*
REMOTE_HOST: ${{ secrets.SERVER_HOST }}
REMOTE_USER: ${{ secrets.SERVER_USERNAME }}
TARGET: /usr/share/nginx/XTools/

0 comments on commit fa6ec5f

Please sign in to comment.