Skip to content

Commit f199d66

Browse files
committed
Added build workflow
1 parent 46f310f commit f199d66

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: build
2+
on: [push, pull_request, workflow_dispatch]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-24.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+
with:
12+
persist-credentials: false
13+
- name: Validate Gradle Wrapper
14+
uses: gradle/actions/wrapper-validation@v4
15+
- name: Set up JDK 21
16+
uses: actions/setup-java@v4
17+
with:
18+
distribution: temurin
19+
java-version: 21
20+
check-latest: true
21+
- name: Set Gradle Permissions
22+
run: "chmod +x ./gradlew"
23+
- name: Build with Gradle
24+
run: "./gradlew build"
25+
- name: Upload Artifacts to GitHub
26+
uses: actions/upload-artifact@v4
27+
with:
28+
name: Artifacts
29+
path: build/libs/

0 commit comments

Comments
 (0)