Some checks failed
Deploy Spring Boot App / build-and-deploy (push) Has been cancelled
29 lines
510 B
YAML
29 lines
510 B
YAML
name: Deploy Spring Boot App
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: self-hosted
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up JDK 21
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
distrobution: 'temurin'
|
|
java-version: '21'
|
|
|
|
- name: Build with Maven
|
|
run: mvn clean package -DskipTests
|
|
|
|
- name: Restart Spring Boot via Supervisor
|
|
run: sudo supervisorctl restart fercogan
|
|
|
|
|
|
|