-
Notifications
You must be signed in to change notification settings - Fork 18
42 lines (36 loc) · 1.09 KB
/
maven.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 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/checkout@v3.6.0
- name: Set up JDK 16
uses: actions/setup-java@v4.4.0
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/upload-artifact@v4.4.0
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/upload-artifact@v4.4.0
with:
# Artifact name
name: McDeob-macOS
# A file, directory or wildcard pattern that describes what to upload
path: |
target/*.dmg