From e8bdce39e23f780cc9ddb29d9529fb1a582c97bb Mon Sep 17 00:00:00 2001 From: Jacob Angga Date: Wed, 7 Aug 2024 16:25:07 -0600 Subject: [PATCH] Created a deploy.yml Started by creating connection --- .github/workflows/deploy.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..f4a3e4a --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,32 @@ +name: Deploy + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + deploy: + name: "Deploy to VPS" + runs-on: ubuntu-latest + steps: + - name: Configure SSH + run: | + mkdir -p ~/.ssh/ + echo "$SSH_PRIVATE_KEY" > ~/.ssh/deploy-key.pen + chmod 600 ~/.ssh/deploy-key.pem + cat >> ~/.ssh/config <