From 2f356a95a8f0f86882ca6f289559ed84595c66d8 Mon Sep 17 00:00:00 2001 From: Woody_K Date: Mon, 15 Apr 2024 16:55:46 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20#10=20=EB=B0=B0=ED=8F=AC=20=EA=B3=BC?= =?UTF-8?q?=EC=A0=95=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/maven.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 4cc7867..f497912 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -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"