Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ghghtygh authored Mar 15, 2024
1 parent 4d07d48 commit c554408
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ on:
branches: [ "master" ]
tags:
- 'v*'
pull_request:
branches: [ "master" ]

jobs:
build:
Expand Down Expand Up @@ -87,7 +85,7 @@ jobs:
source: "build/libs/*.jar"
target: ${{ secrets.SERVER_DEPLOY_DIR }}

- name: Deploy prod
- name: Deploy JAR file 1
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_HOST }}
Expand All @@ -97,7 +95,17 @@ jobs:
script: |
cd ${{ secrets.SERVER_DEPLOY_DIR }}
./${{ secrets.SERVER_DEPLOY_FILE_1 }}
- name: Deploy JAR file 2
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_HOST }}
port: ${{ secrets.SERVER_PORT }}
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SERVER_SSH_KEY }}
script: |
cd ${{ secrets.SERVER_DEPLOY_DIR }}
./${{ secrets.SERVER_DEPLOY_FILE_2 }}
dependency-submission:
runs-on: ubuntu-latest
Expand Down

0 comments on commit c554408

Please sign in to comment.