JFB 7: Build jar from homework 6.5 using Maven and Gradle (#8) #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build with Maven and run | |
on: [push, workflow_dispatch] | |
jobs: | |
build_with_maven: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get Repo | |
uses: actions/[email protected] | |
- name: Setup Java | |
uses: actions/[email protected] | |
with: | |
java-version: 21 | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Build Project with Maven | |
run: mvn clean package | |
- name: Run Application | |
run: java -jar java-trainee-edu/target/java-trainee-edu-1.0-SNAPSHOT.jar |