maven.yml - test 2 different builds #173
This file contains hidden or 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
# 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: Java CI with Maven | |
on: | |
push: | |
branches: '**' | |
pull_request: | |
branches: '**' | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up JDK 16 | |
uses: actions/[email protected] | |
with: | |
java-version: '23.0.0+37' | |
distribution: 'temurin' | |
- name: Build with Maven | |
run: mvn -B package -P macos --file pom.xml | |
- name: Upload a Build Artifact | |
uses: actions/[email protected] | |
with: | |
# Artifact name | |
name: McDeob-Jar | |
# A file, directory or wildcard pattern that describes what to upload | |
path: | | |
target/McDeob*.jar | |
- name: Upload a macOS Build Artifact | |
uses: actions/[email protected] | |
with: | |
# Artifact name | |
name: McDeob-macOS | |
# A file, directory or wildcard pattern that describes what to upload | |
path: | | |
target/*.dmg | |