Skip to content

Commit

Permalink
Update maven.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lt-name authored Dec 30, 2024
1 parent 5e49b17 commit 48b7974
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,31 @@ name: Java CI with Maven

on:
push:
branches: [ master, PM1E ]
branches: [ master, nkx ]
pull_request:
branches: [ master, PM1E ]
branches: [ master, nkx ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Set up JDK 1.8
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: 1.8
java-version: 17
distribution: 'temurin'
- name: Cache Maven packages
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build projects
run: mvn -B -U clean package --file pom.xml
- run: mkdir staging && cp target/*.jar staging
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
with:
name: RsNPC-SNAPSHOT
path: staging

0 comments on commit 48b7974

Please sign in to comment.