File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ version : 2
2+ updates :
3+
4+ - package-ecosystem : " gradle"
5+ directory : " /"
6+ schedule :
7+ interval : " daily"
8+ commit-message :
9+ prefix : " gradle"
10+ include : " scope"
11+
12+ - package-ecosystem : " github-actions"
13+ directory : " /"
14+ schedule :
15+ interval : " daily"
16+ commit-message :
17+ prefix : " github-actions"
18+ include : " scope"
Original file line number Diff line number Diff line change 1+ name : Java CI with Gradle
2+
3+ concurrency :
4+ group : " build-1.19.4"
5+ cancel-in-progress : true
6+
7+ on :
8+ push :
9+ branches : [ master ]
10+ paths-ignore :
11+ - ' *.md'
12+
13+ jobs :
14+ build :
15+
16+ runs-on : ubuntu-latest
17+ steps :
18+ - uses : actions/checkout@v3.2.0
19+ - name : Set up JDK 17
20+ uses : actions/setup-java@v3.9.0
21+ with :
22+ java-version : 17
23+ distribution : ' zulu'
24+ - name : Grant execute permission for gradlew
25+ run : chmod +x gradlew
26+ - name : Build with Gradle
27+ run : ./gradlew build
28+ - name : Remove *-dev.jar
29+ run : rm ./build/libs/*-dev.jar || true
30+ - uses : " marvinpinto/action-automatic-releases@latest"
31+ with :
32+ repo_token : " ${{ secrets.GITHUB_TOKEN }}"
33+ automatic_release_tag : " 1.19.4-build-${{ github.run_number }}"
34+ prerelease : false
35+ title : " 1.19.4 Build ${{ github.run_number }}"
36+ files : |
37+ ./build/libs/*.jar
Original file line number Diff line number Diff line change 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 : Java CI with Gradle
5+
6+ on : [pull_request]
7+
8+ jobs :
9+ build :
10+
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v3
14+ - name : Set up JDK 17
15+ uses : actions/setup-java@v3.6.0
16+ with :
17+ java-version : 17
18+ distribution : ' zulu'
19+ - name : Grant execute permission for gradlew
20+ run : chmod +x gradlew
21+ - name : Build with Gradle
22+ run : ./gradlew build
23+ - name : Upload Artifact
24+ uses : actions/upload-artifact@v3
25+ with :
26+ name : pull-request-build
27+ path : build/libs/
You can’t perform that action at this time.
0 commit comments