From c2a519ef551f1c0c9e5a094f37e372176a7f321c Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Tue, 29 Apr 2025 17:44:18 -0400 Subject: [PATCH] deploy (#623) ## Description: ## Please complete the following: - [ ] I have added screenshots for all UI updates - [ ] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [ ] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors ## Please put your Discord username so you can be contacted if a bug or regression is found: Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com> --- .github/workflows/deploy.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e59402897..70ac7c581 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -65,11 +65,12 @@ jobs: SERVER_HOST_US: ${{ secrets.SERVER_HOST_US }} SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} run: | + set -euxo pipefail mkdir -p ~/.ssh echo "${SSH_PRIVATE_KEY}" > ~/.ssh/id_rsa - ssh-keyscan -H "$SERVER_HOST_STAGING" >> ~/.ssh/known_hosts - ssh-keyscan -H "$SERVER_HOST_US" >> ~/.ssh/known_hosts - ssh-keyscan -H "$SERVER_HOST_EU" >> ~/.ssh/known_hosts + test -n "$SERVER_HOST_STAGING" && ssh-keyscan -H "$SERVER_HOST_STAGING" >> ~/.ssh/known_hosts + test -n "$SERVER_HOST_US" && ssh-keyscan -H "$SERVER_HOST_US" >> ~/.ssh/known_hosts + test -n "$SERVER_HOST_EU" && ssh-keyscan -H "$SERVER_HOST_EU" >> ~/.ssh/known_hosts chmod 600 ~/.ssh/id_rsa - name: Deploy env: