From 6076e06d5954f3723a088510364241435969a821 Mon Sep 17 00:00:00 2001 From: Choi-Jinwoo Date: Sun, 29 Aug 2021 15:31:51 +0900 Subject: [PATCH] =?UTF-8?q?add:=20Production=20=ED=99=98=EA=B2=BD=20?= =?UTF-8?q?=EB=B0=B0=ED=8F=AC=20=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/prod-server-cd.yml | 84 ++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 .github/workflows/prod-server-cd.yml diff --git a/.github/workflows/prod-server-cd.yml b/.github/workflows/prod-server-cd.yml new file mode 100644 index 0000000..d5fc50d --- /dev/null +++ b/.github/workflows/prod-server-cd.yml @@ -0,0 +1,84 @@ +name: Production Server CD + +on: + push: + branches: + - main +jobs: + backend: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: technote-space/get-diff-action@v4 + with: + PATTERNS: | + src/**/*.+(ts|tsx) + FILES: | + package.json + RELATIVE: "server" + - name: Configure SSH + run: | + mkdir -p ~/.ssh/ + echo "$SSH_KEY" > ~/.ssh/production.key + chmod 600 ~/.ssh/production.key + cat >>~/.ssh/config < ~/.ssh/production.key + chmod 600 ~/.ssh/production.key + cat >>~/.ssh/config <>./.env <