Skip to content

Commit

Permalink
feat: #10 배포 과정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
woody35545 authored Apr 15, 2024
1 parent 86d14c3 commit 2f356a9
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,24 @@ jobs:

- name: Build with Maven
run: mvn package ${{ secrets.MAVEN_PACKAGE_OPTIONS }}

- name : upload file
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SSH_IP }}
username: ${{ secrets.SSH_ID }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }}
source: "target/*.jar"
target: "~/"
rm: false

- name: execute shell script
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_IP }}
username: ${{ secrets.SSH_ID }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }}
script_stop: true
script: "./startup.sh"

0 comments on commit 2f356a9

Please sign in to comment.