Update Actions

This commit is contained in:
HexedHero 2024-02-04 00:24:17 +00:00 committed by GitHub
parent 935fd0b204
commit 54c252902d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,16 +9,16 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: "startsWith(github.event.head_commit.message, '[CI-BUILD]')" if: startsWith(github.event.head_commit.message, '[CI-BUILD]')
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Set up JDK 17 (Java 17) - name: Set up JDK 17 (Java 17)
uses: actions/setup-java@v3 uses: actions/setup-java@v4
with: with:
java-version: 17 java-version: 17
distribution: 'temurin' distribution: 'temurin'
- name: Cache local Maven repository - name: Cache local Maven repository
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: ~/.m2/repository path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
@ -26,7 +26,7 @@ jobs:
- name: Build with Maven - name: Build with Maven
run: mvn -B package --file pom.xml run: mvn -B package --file pom.xml
- name: Upload artifacts (Jars) - name: Upload artifacts (Jars)
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: ${{ github.event.repository.name }} name: ${{ github.event.repository.name }}
path: target/*.jar path: target/*.jar