Skip to content

Commit

Permalink
check b4 remove
Browse files Browse the repository at this point in the history
  • Loading branch information
GraemeFulton committed Apr 22, 2024
1 parent 734ee70 commit e5b00e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
# Add the server's host key to known_hosts
ssh-keyscan -H ${{ secrets.SERVER_HOST }} >> ~/.ssh/known_hosts
ssh ${{ env.SERVER_USER }}@${{ env.SERVER_HOST }} "echo 'Cleaning staging directory...' && rm -rf ${{ env.STAGING_DIR_PATH }}/*"
ssh ${{ env.SERVER_USER }}@${{ env.SERVER_HOST }} "echo 'Checking and cleaning staging directory...' && if [ -d ${{ env.STAGING_DIR_PATH }} ]; then cd ${{ env.STAGING_DIR_PATH }} && rm -rf *; fi"
scp -r ${{ env.STAGING_DIR_PATH }}/* ${{ env.SERVER_USER }}@${{ env.SERVER_HOST }}:${{ env.STAGING_DIR_PATH }}
ssh ${{ env.SERVER_USER }}@${{ env.SERVER_HOST }} "
set -e
Expand Down

0 comments on commit e5b00e0

Please sign in to comment.