Commit 321ba5f 1 parent 88c7683 commit 321ba5f Copy full SHA for 321ba5f
File tree 1 file changed +35
-0
lines changed
1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Automatically build the project and run any configured tests for every push
2
+ # and submitted pull request. This can help catch issues that only occur on
3
+ # certain platforms or Java versions, and provides a first line of defence
4
+ # against bad commits.
5
+
6
+ name : AQQBot Gradle Build
7
+ on : push
8
+
9
+ jobs :
10
+ build :
11
+ # Only run on PRs if the source branch is on someone else's repo
12
+ if : ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Checkout Git Repository
16
+ uses : actions/checkout@v3
17
+ - name : Validate Gradle wrapper
18
+ uses : gradle/wrapper-validation-action@v1
19
+ - name : Setup Gradle
20
+ uses : gradle/gradle-build-action@v2
21
+ - name : Set up JDK
22
+ uses : actions/setup-java@v3
23
+ with :
24
+ distribution : ' temurin'
25
+ java-version : ' 8'
26
+ - name : make gradle wrapper executable
27
+ run : chmod +x ./gradlew
28
+ - name : Build
29
+ run : ./gradlew build
30
+ - name : capture build artifacts
31
+ uses : actions/upload-artifact@v3
32
+ with :
33
+ name : Artifacts
34
+ path : |
35
+ build/libs/
You can’t perform that action at this time.
0 commit comments