-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f1fea52
commit d18e090
Showing
1 changed file
with
15 additions
and
28 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,25 @@ | ||
# 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: | ||
workflow_dispatch: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
- name: Set up JDK 16 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '16' | ||
distribution: 'temurin' | ||
- name: Cache | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Build with Maven | ||
run: mvn -B package --file pom.xml | ||
- name: Upload a Build Artifact | ||
uses: actions/[email protected] | ||
with: | ||
# A file, directory or wildcard pattern that describes what to upload | ||
path: /home/runner/work/BlueMapFloodgate/BlueMapFloodgate/target/* | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK 16 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '16' | ||
distribution: 'temurin' | ||
- name: Build with Maven | ||
run: mvn -B package --file pom.xml | ||
- name: Upload a Build Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: | | ||
target/*.jar | ||
!target/original-*.jar |