From e3daf55f762c37057da29e3f662843180a779abd Mon Sep 17 00:00:00 2001 From: capDoYeonLee Date: Fri, 19 Jul 2024 22:55:26 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=ED=94=84=EB=A1=A0=ED=8A=B8=20CI/CD=20?= =?UTF-8?q?=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/frontCICD.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/frontCICD.yml diff --git a/.github/workflows/frontCICD.yml b/.github/workflows/frontCICD.yml new file mode 100644 index 00000000..61f88cd0 --- /dev/null +++ b/.github/workflows/frontCICD.yml @@ -0,0 +1,23 @@ +name: deploy +on: + push: + branches: [ 'main' ] + workflow_dispathch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + SSH: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Run scripts in server + uses: appleboy/ssh-action@master + with: + key: ${{ secrets.FRONT_EC2_SSH_KEY }} + host: ${{ secrets.FRONT_EC2_HOST }} + username: ${{ secrets.FRONT_EC2_USER }} + script: | + pwd + +