Skip to content

Commit

Permalink
Create ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Skullians authored Jun 18, 2024
1 parent 8b28cf8 commit dd4298a
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on:
push:
branches-ignore:
- dependabot/**
pull_request:

jobs:
build:
name: Maven Build
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 17, 21 ]

steps:
- name: Git checkout
uses: actions/checkout@v4

- name: Setup JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java }}

- name: Build with Maven
run: |
mvn --version
mvn --batch-mode --no-transfer-progress package
echo "artifact_name=$(mvn help:evaluate -Dexpression=project.build.finalName -q -DforceStdout)" >> $GITHUB_ENV
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: matrix.java == 17
with:
name: ${{ env.artifact_name }}
path: |
target/*.jar
!target/original-*.jar

0 comments on commit dd4298a

Please sign in to comment.