From b7c18dc30549a5886fd2c609639271b5f2539995 Mon Sep 17 00:00:00 2001 From: Harry Kim <39542757+rladydgn@users.noreply.github.com> Date: Tue, 5 Dec 2023 11:44:49 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=9E=90=EB=8F=99=20=EB=B0=B0=ED=8F=AC?= =?UTF-8?q?=20=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..6b80eb1 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: be-deploy + +on: + push: + branches: + - be-dev + +jobs: + build: + runs-on: ubuntu-18.04 + steps: + - name: SSH-be-deploy + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.NCP_HOST }} + username: ${{ secrets.NCP_USERNAME }} + password: ${{ secrets.NCP_PASSWORD }} + port: ${{ secrets.NCP_PORT }} + script: | + cd /home/be/web12-algo-with-me/ + git pull + cd be + ./build-all + ./run-all-background