Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Skullians authored Jul 30, 2024
1 parent 073da61 commit c420b1c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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

0 comments on commit c420b1c

Please sign in to comment.