Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
firasm authored May 1, 2024
1 parent 49b7c19 commit 9d7ffe6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ jobs:
COURSE_REMOTE_USER: "cs-430"
CS_REMOTE_USER: "firasm"
CS_TUNNEL: "remote.cs.ubc.ca"
CS_REMOTE_KEY: ${{ secrets.CS_REMOTE_KEY }}
REMOTE_KEY: ${{ secrets.FIRAS_SERVER_SSH_KEY }}
TERM: "2024_S1"
LOCAL_DIR: "_build/html/"
run: |
mkdir ~/.ssh
echo "$CS_REMOTE_KEY" > ~/.ssh/id_rsa
mkdir -p ~/.ssh
echo "$REMOTE_KEY" > ~/.ssh/id_rsa
ssh-keyscan -H $REMOTE_HOST >> ~/.ssh/known_hosts
chmod 600 ~/.ssh/id_rsa
# send files all in one shot
rsync -navz -e 'ssh -J $CS_REMOTE_USER@$CS_TUNNEL' $LOCAL_DIR $COURSE_REMOTE_USER@COURSE_REMOTE_HOST:public_html/$TERM
rsync -navz -e 'ssh -J $CS_REMOTE_USER@$CS_TUNNEL' $LOCAL_DIR $COURSE_REMOTE_USER@COURSE_REMOTE_HOST:public_html/$TERM

0 comments on commit 9d7ffe6

Please sign in to comment.