Skip to content

Commit

Permalink
Deploy the website from GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
opdavies committed Sep 12, 2024
1 parent b0dad10 commit 1b5a341
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,12 @@ jobs:
env:
APP_ENV: prod
NODE_ENV: production

- name: Install the deploy key and known hosts
run: |
mkdir -p ~/.ssh && chmod 700 ~/.ssh
echo "${{ secrets.SSH_DEPLOY_KEY }}" > ~/.ssh/deploy && chmod 600 ~/.ssh/deploy
echo "${{ secrets.SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts && chmod 600 ~/.ssh/known_hosts
- name: Deploy the website
run: ssh -i ~/.ssh/deploy [email protected]

0 comments on commit 1b5a341

Please sign in to comment.