Skip to content

Commit

Permalink
refactor(github) : 순서 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Woongbin06 committed Apr 16, 2024
1 parent e472b52 commit 11d9eba
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
push:
branches: [ "master" ]

env:
TARGET_PATH: ${{ secrets.DIST_PATH }}

jobs:
build:

Expand All @@ -33,19 +30,20 @@ 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/[email protected]
with:
host: ${{ secrets.SERVER_HOST }}
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
Expand Down

0 comments on commit 11d9eba

Please sign in to comment.