Skip to content

Commit

Permalink
more ssh setup for rsync
Browse files Browse the repository at this point in the history
  • Loading branch information
raffazizzi committed Jul 10, 2024
1 parent c2d9ff2 commit bea40a7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ jobs:
AIRTABLE_MITH_BASE_ID: appMWsw8HKjjokBg2
run: npm run build

- name: Adding Known Hosts
run: ssh-keyscan -H mith.umd.edu >> ~/.ssh/known_hosts

- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_SECRET_KEY }}

- name: Deploy to server
run: |
rsync -avz --delete --quiet -e "ssh -i ${{ secrets.SSH_SECRET_KEY }} -o StrictHostKeyChecking=no" ./public/ [email protected]:/var/www/mith.umd.edu
Expand Down

0 comments on commit bea40a7

Please sign in to comment.