Skip to content

Commit 68110b6

Browse files
committed
fix pipeline
1 parent 9584a61 commit 68110b6

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

.github/workflows/build.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This workflow will build a Java project with Gradle
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3+
4+
name: Build
5+
6+
on: [push]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
environment: prod
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up JDK 8
15+
uses: actions/setup-java@v2
16+
with:
17+
java-version: '8'
18+
distribution: 'adopt'
19+
- name: Grant execute permission for gradlew
20+
run: chmod +x gradlew
21+
- name: Build with Gradle
22+
run: ./gradlew build

.github/workflows/gradle.yml renamed to .github/workflows/publish.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
# This workflow will build a Java project with Gradle
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
33

4-
name: Java CI with Gradle
4+
name: Publish
55

66
on:
77
push:
88
branches: [ master ]
99
paths:
1010
- 'src/**'
11-
pull_request:
12-
branches: [ master ]
13-
paths:
14-
- 'src/**'
1511

1612
jobs:
1713
publish:

0 commit comments

Comments
 (0)