Skip to content

Commit

Permalink
Merge pull request #22 from NovaGaia/feat/15-multi-refs
Browse files Browse the repository at this point in the history
Add SSH deployment step to deploy.yml
  • Loading branch information
hrenaud authored Feb 15, 2024
2 parents cf5d353 + c89ee2a commit eb8d362
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 eb8d362

Please sign in to comment.