Skip to content

Merge pull request #12 from dariuszzbyrad/add-maven-wrapper #29

Merge pull request #12 from dariuszzbyrad/add-maven-wrapper

Merge pull request #12 from dariuszzbyrad/add-maven-wrapper #29

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Maven
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Grant execute permission for mvnw
run: chmod +x mvnw
- name: Build with Maven
run: ./mvnw -B package --file pom.xml
- name: Make staging directory
run: mkdir staging
- name: Copy JAR to staging
run: cp target/distribution/* staging
- name: Upload
uses: actions/upload-artifact@v4
with:
name: Package
path: staging