forked from Upstream/CitizensCMD
Update Actions
This commit is contained in:
parent
935fd0b204
commit
54c252902d
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -9,16 +9,16 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
if: "startsWith(github.event.head_commit.message, '[CI-BUILD]')"
|
||||
if: startsWith(github.event.head_commit.message, '[CI-BUILD]')
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up JDK 17 (Java 17)
|
||||
uses: actions/setup-java@v3
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: 17
|
||||
distribution: 'temurin'
|
||||
- name: Cache local Maven repository
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.m2/repository
|
||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||
@ -26,7 +26,7 @@ jobs:
|
||||
- name: Build with Maven
|
||||
run: mvn -B package --file pom.xml
|
||||
- name: Upload artifacts (Jars)
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ github.event.repository.name }}
|
||||
path: target/*.jar
|
||||
|
Loading…
Reference in New Issue
Block a user