Skip to content

Commit bc530d1

Browse files
committed
update ci
1 parent 0f8ba64 commit bc530d1

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/gradle.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
name: Java CI
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
48

59
jobs:
610
build:
711

812
runs-on: ubuntu-latest
913

1014
steps:
11-
- uses: actions/checkout@v1
12-
- name: Set up JDK 11
13-
uses: actions/setup-java@v1
14-
with:
15-
java-version: 11
16-
- name: Build with Gradle
17-
run: ./gradlew build
15+
- uses: actions/checkout@v1
16+
- name: Set up JDK 17
17+
uses: actions/setup-java@v1
18+
with:
19+
java-version: 17
20+
- name: Build with Gradle
21+
run: ./gradlew build

0 commit comments

Comments
 (0)