diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7f3e793..4c1220e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -51,4 +51,21 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 \ No newline at end of file + 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/ssh-deploy@v2.1.5 + 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/ \ No newline at end of file