Skip to content

Commit

Permalink
Updated build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Despical committed Nov 2, 2024
1 parent a3e9647 commit b4bbe15
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
name: Build
name: Java CI

on:
push:
branches: [master]
branches: ["master"]
pull_request:
branches: [master]
branches: ["master"]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: 17
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: KOTL
path: target/**
if: "!contains(github.event.head_commit.message, 'README')"
run: mvn -B package --file pom.xml

0 comments on commit b4bbe15

Please sign in to comment.