forked from Upstream/CitizensCMD
Use v3 actions
This commit is contained in:
parent
41d06bb6de
commit
c8fc33d9d7
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -11,14 +11,14 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
if: "startsWith(github.event.head_commit.message, '[CI-BUILD]')"
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up JDK 17 (Java 17)
|
||||
uses: actions/setup-java@v2
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: 17
|
||||
distribution: 'temurin'
|
||||
- name: Cache local Maven repository
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v3
|
||||
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@v2
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ github.event.repository.name }}
|
||||
path: target/*.jar
|
||||
|
Loading…
Reference in New Issue
Block a user