Skip to content

Commit af89e7f

Browse files
committed
Create the workflow for the v2 branch
1 parent d6b0ef2 commit af89e7f

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/gradle-v2.yml

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

0 commit comments

Comments
 (0)