Skip to content

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
TechnicJelle authored Jun 12, 2024
1 parent f1fea52 commit d18e090
Showing 1 changed file with 15 additions and 28 deletions.
43 changes: 15 additions & 28 deletions .github/workflows/main.yml
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

0 comments on commit d18e090

Please sign in to comment.