diff --git a/.github/workflows/auto-deployment.yml b/.github/workflows/auto-deployment.yml index 5462d22..25caeca 100644 --- a/.github/workflows/auto-deployment.yml +++ b/.github/workflows/auto-deployment.yml @@ -31,8 +31,9 @@ jobs: - name: Build Jar run: | - chmod 755 JWT/gradlew - JWT/gradlew bootJar + cd JWT + chmod 755 gradlew + ./gradlew bootJar - name: Prepare SSH connect env: @@ -53,7 +54,9 @@ jobs: - name: Send jar file to EC2 run: | + cd JWT jarPath=$(./gradlew -q jarPath) + cd .. scp -i private_key.pem $jarPath "${username}@${host}:~/server.jar" - name: Startup new uploaded jar