From e7fd79175b442d68629302cfa12bcee04620eaa7 Mon Sep 17 00:00:00 2001 From: Woody_K Date: Sun, 28 Apr 2024 07:11:48 +0900 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 54 +++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0df04466..bf342d77 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,32 +17,32 @@ jobs: ${{ SECRETS.PREPARE_SKM_KEY }} ${{ SECRETS.PREPARE_INSTANCE_KEY }} - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'temurin' - cache: maven - - name: Build with Maven - run: mvn ${{ secrets.MAVEN_PACKAGE_OPTIONS }} + # - name: Set up JDK 11 + # uses: actions/setup-java@v3 + # with: + # java-version: '11' + # distribution: 'temurin' + # cache: maven + # - name: Build with Maven + # run: mvn ${{ 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 : 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: "kill $(lsof -i:${{ secrets.APPLICATION_PORT }} -t) & nohup java -jar ${{ secrets.JAVA_RUN_OPTION }} ~/target/*.jar > ~/deploy.log 2>&1 &" + # - 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: "kill $(lsof -i:${{ secrets.APPLICATION_PORT }} -t) & nohup java -jar ${{ secrets.JAVA_RUN_OPTION }} ~/target/*.jar > ~/deploy.log 2>&1 &"