From 52d223840710381686d9914e76bbbd2ce4261358 Mon Sep 17 00:00:00 2001 From: filippo-ferrari Date: Fri, 6 Sep 2024 21:15:47 +0200 Subject: [PATCH] feat: changed deploy.yml --- .github/workflows/deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 640c223..ebd5c6c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,7 +3,7 @@ name: Deploy Vaadin App on: push: branches: - - main # Adjust this to your deployment branch + - main jobs: deploy: @@ -17,9 +17,10 @@ jobs: uses: actions/setup-java@v3 with: java-version: '22' + distribution: 'adopt-openjdk' - name: Build JAR - run: ./mvnw clean package -DskipTests # Adjust this based on your build tool + run: ./mvnw clean package -DskipTests - name: Upload JAR to server run: scp -i ${{ secrets.SSH_KEY }} target/munera-1.0-SNAPSHOT.jar ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/home/${{ secrets.SSH_USER }}/munera