feat: changed deploy.yml
This commit is contained in:
parent
1133e46f49
commit
52d2238407
1 changed files with 3 additions and 2 deletions
5
.github/workflows/deploy.yml
vendored
5
.github/workflows/deploy.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue