Skip to content

Commit

Permalink
update for 2022WT1
Browse files Browse the repository at this point in the history
  • Loading branch information
firasm committed Jul 12, 2022
1 parent 83b3cb3 commit 08efc0c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build_deploy_rsync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ jobs:
REMOTE_KEY: ${{ secrets.SERVER_SSH_KEY }}
REMOTE_DIR: ${{ secrets.REMOTE_TARGET }}
LOCAL_DIR: "_build/html/"
COURSE_NAME: "2021_WT1/physics111"
COURSE_NAME: "physics111"
TERM: "2022_WT2"
run: |
mkdir ~/.ssh
echo "$REMOTE_KEY" > ~/.ssh/id_rsa
ssh-keyscan -H $REMOTE_HOST >> ~/.ssh/known_hosts
chmod 600 ~/.ssh/id_rsa
rsync -avzr --delete $LOCAL_DIR $REMOTE_USER@$REMOTE_HOST:$REMOTE_DIR/$COURSE_NAME
rsync -avzr --delete $LOCAL_DIR $REMOTE_USER@$REMOTE_HOST:$REMOTE_DIR/courses/$TERM/$COURSE_NAME

0 comments on commit 08efc0c

Please sign in to comment.