Skip to content

Commit 321ba5f

Browse files
authored
Create gradle.yml
1 parent 88c7683 commit 321ba5f

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/gradle.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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/

0 commit comments

Comments
 (0)