From dc65da68c0d9e3657889c3a60938fe978b78c718 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Mon, 21 Apr 2025 12:18:38 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Deploy=20(#580)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description: Related to #504 ![image](https://github.com/user-attachments/assets/4d55ec7b-7d51-4214-bc29-613845bc5886) ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] 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: fake.neo Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com> --- .github/workflows/deploy.yml | 41 ++++++++++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 847ce0fa9..fc50835d9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,4 +1,4 @@ -name: Deploy to Remote +name: 🚀 Deploy on: workflow_dispatch: @@ -9,8 +9,22 @@ on: default: "staging" type: choice options: - - production + - prod - staging + target_host: + description: "Deployment Host" + required: true + default: "staging" + type: choice + options: + - eu + - us + - staging + target_subdomain: + description: "Deployment Subdomain" + required: false + default: "" + type: string jobs: deploy: @@ -29,10 +43,23 @@ jobs: mkdir -p ~/.ssh echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa - ssh-keyscan -H ${{ secrets.SERVER_HOST }} >> ~/.ssh/known_hosts - cat >.env <> ~/.ssh/known_hosts + cat >.env.${{ inputs.target_environment }} <