-
-
Notifications
You must be signed in to change notification settings - Fork 3
30 lines (28 loc) · 1.03 KB
/
build.yml
File metadata and controls
30 lines (28 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: "Build"
on: ["push", "pull_request", "workflow_dispatch"]
permissions:
contents: "read"
jobs:
build:
runs-on: "ubuntu-24.04"
if: "${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}"
steps:
- name: "Checkout repository"
uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2
with:
persist-credentials: false
- name: "Set up Gradle"
uses: "gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2" # v5.0.0
- name: "Set up Java 25"
uses: "actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654" # v5.2.0
with:
distribution: "temurin"
java-version: 25
check-latest: true
- name: "Build with Gradle"
run: "./gradlew build"
- name: "Upload artifacts to GitHub"
uses: "actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f" # v6.0.0
with:
name: "Artifacts"
path: "build/libs/"