Skip to content

Commit

Permalink
Add SSH deployment step to deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hrenaud committed Feb 15, 2024
1 parent 2e5673d commit c89ee2a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@ jobs:
PUBLIC_REPO_URL: ${{ vars.PUBLIC_REPO_URL }}
PUBLIC_REPO_BRANCH: ${{ vars.PUBLIC_REPO_BRANCH }}

- name: Deploy to Server via ssh key
uses: easingthemes/ssh-deploy@v4.0.5
env:
SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }}
ARGS: "-rltgoDzvO --delete"
SOURCE: "dist/"
REMOTE_HOST: ${{ vars.REMOTE_HOST }}
REMOTE_USER: ${{ vars.REMOTE_USER }}
TARGET: ${{ vars.REMOTE_TARGET }}
SCRIPT_BEFORE: whoami

- name: Upload Pages Artifact
# Must use v2 to avoid requiring `actions/deploy-pages@v4` or newer
uses: actions/upload-pages-artifact@v2
Expand Down

0 comments on commit c89ee2a

Please sign in to comment.