From 11d9eba41d8425da6ee42c9b186faf1afd24970f Mon Sep 17 00:00:00 2001 From: Woongbin06 Date: Tue, 16 Apr 2024 18:18:38 +0900 Subject: [PATCH] =?UTF-8?q?refactor(github)=20:=20=EC=88=9C=EC=84=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cd.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index feb85fd..ed9b36a 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -4,9 +4,6 @@ on: push: branches: [ "master" ] -env: - TARGET_PATH: ${{ secrets.DIST_PATH }} - jobs: build: @@ -33,6 +30,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + + - name: Check directory contents + run: | + ls -l ${{ secrets.DIST_PATH }} + ls + - name: Deploy to server uses: appleboy/scp-action@v0.1.7 with: @@ -40,12 +43,7 @@ jobs: username: ${{ secrets.SERVER_NAME }} password: ${{ secrets.SERVER_PASSWORD }} source: ${{ secrets.SOURCE_PATH }} - target: ${{ env.TARGET_PATH }} - - - name: Check directory contents - run: | - ls -l ${{ env.TARGET_PATH }} - ls + target: ${{ secrets.DIST_PATH }} - name: Execute jar file uses: appleboy/ssh-action@master