Skip to content

Commit b93bec6

Browse files
committed
Add Github Build Workflow
1 parent 0edc251 commit b93bec6

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: build
2+
on: [push, pull_request, workflow_dispatch]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-22.04
7+
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
8+
steps:
9+
- name: Checkout Repository
10+
uses: actions/checkout@v4
11+
- name: Validate Gradle Wrapper
12+
uses: gradle/actions/wrapper-validation@v4
13+
- name: Set up JDK 17
14+
uses: actions/setup-java@v4
15+
with:
16+
distribution: temurin
17+
java-version: 17
18+
check-latest: true
19+
- name: Build with Gradle
20+
run: ./gradlew build
21+
- name: Upload Artifacts to GitHub
22+
uses: actions/upload-artifact@v4
23+
with:
24+
name: Artifacts
25+
path: build/libs/

0 commit comments

Comments
 (0)