Commit af89e7f 1 parent d6b0ef2 commit af89e7f Copy full SHA for af89e7f
File tree 1 file changed +37
-0
lines changed
1 file changed +37
-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 : PlumBot v2 dev build
7
+ on :
8
+ push :
9
+ branches : [ "v2" ]
10
+
11
+ jobs :
12
+ build :
13
+ # Only run on PRs if the source branch is on someone else's repo
14
+ if : ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - name : Checkout Git Repository
18
+ uses : actions/checkout@v3
19
+ - name : Validate Gradle wrapper
20
+ uses : gradle/wrapper-validation-action@v1
21
+ - name : Setup Gradle
22
+ uses : gradle/gradle-build-action@v2
23
+ - name : Set up JDK
24
+ uses : actions/setup-java@v3
25
+ with :
26
+ distribution : ' zulu'
27
+ java-version : ' 17'
28
+ - name : make gradle wrapper executable
29
+ run : chmod +x ./gradlew
30
+ - name : Build
31
+ run : ./gradlew build
32
+ - name : capture build artifacts
33
+ uses : actions/upload-artifact@v3
34
+ with :
35
+ name : PlumBot Artifacts
36
+ path : |
37
+ build/libs/
You can’t perform that action at this time.
0 commit comments