feat: changed deploy.yml

This commit is contained in:
filippo-ferrari 2024-09-06 21:15:47 +02:00
parent 1133e46f49
commit 52d2238407

View file

@ -3,7 +3,7 @@ name: Deploy Vaadin App
on: on:
push: push:
branches: branches:
- main # Adjust this to your deployment branch - main
jobs: jobs:
deploy: deploy:
@ -17,9 +17,10 @@ jobs:
uses: actions/setup-java@v3 uses: actions/setup-java@v3
with: with:
java-version: '22' java-version: '22'
distribution: 'adopt-openjdk'
- name: Build JAR - 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 - 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 run: scp -i ${{ secrets.SSH_KEY }} target/munera-1.0-SNAPSHOT.jar ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/home/${{ secrets.SSH_USER }}/munera