Skip to content

Commit d66f629

Browse files
authored
Update maven.yml (#81)
1 parent 1eb2860 commit d66f629

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/maven.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,31 @@ name: Java CI
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ master, NKMOT ]
66
pull_request:
7-
branches: [ master ]
7+
branches: [ master, NKMOT ]
88

99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v1
14+
- uses: actions/checkout@v4
1515
- name: Set up JDK 1.8
16-
uses: actions/setup-java@v1
16+
uses: actions/setup-java@v4
1717
with:
18-
java-version: 1.8
18+
java-version: 8
19+
distribution: 'zulu'
1920
- name: Cache Maven packages
20-
uses: actions/cache@v1
21+
uses: actions/cache@v4
2122
with:
2223
path: ~/.m2
2324
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
2425
restore-keys: ${{ runner.os }}-m2
2526
- name: Build projects
2627
run: mvn -B package --file pom.xml
2728
- run: mkdir staging && cp target/*.jar staging
28-
- uses: actions/upload-artifact@v1
29+
- uses: actions/upload-artifact@v4
2930
with:
3031
name: GunWar-SNAPSHOT
3132
path: staging

0 commit comments

Comments
 (0)