-
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 1.12 KB
/
Copy pathbuild.yml
File metadata and controls
33 lines (31 loc) · 1.12 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
31
32
33
name: "Build"
on: ["push", "pull_request", "workflow_dispatch"]
permissions:
contents: "read"
jobs:
build:
runs-on: "ubuntu-26.04"
if: "${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}"
steps:
- name: "Checkout repository"
uses: "actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0" # v7.0.0
with:
persist-credentials: false
- name: "Set up Gradle"
uses: "gradle/actions/setup-gradle@3f131e8634966bd73d06cc69884922b02e6faf92" # v6.2.0
with:
cache-disabled: true
- name: "Set up Java"
uses: "actions/setup-java@ad2b38190b15e4d6bdf0c97fb4fca8412226d287" # v5.3.0
with:
distribution: "temurin"
java-version: 25
check-latest: true
- name: "Build with Gradle"
run: "./gradlew build --stacktrace"
- name: "Upload artifacts to GitHub"
uses: "actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a" # v7.0.1
with:
name: "Artifacts"
path: "build/libs/"
if-no-files-found: "error"