-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (27 loc) · 935 Bytes
/
build.yml
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
34
35
name: Build Branch
on:
push:
branches-ignore:
- main
workflow_dispatch: # Allow manual triggering from the GitHub Actions tab
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 22
uses: actions/setup-java@v4
with:
java-version: '22'
distribution: 'temurin'
- name: Checkout repository
uses: actions/checkout@v4
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
- name: Setup Gradle
uses: gradle/actions/setup-gradle@473878a77f1b98e2b5ac4af93489d1656a80a5ed # v4
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build
run: ./gradlew build --info --stacktrace
- name: Jib
run: ./gradlew jibBuildTar --info --stacktrace