-
Notifications
You must be signed in to change notification settings - Fork 13
37 lines (37 loc) · 1010 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
36
37
name: test-build
on:
push:
paths:
- 'src/**'
- 'build.gradle'
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Apply Cache
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: $${{ runner.os }}-gradle
- name: Get Short Identifier
uses: benjlevesque/[email protected]
id: short-sha
- name: Build
id: build
env:
VERSION_IDENTIFIER: SNAPSHOT+${{ steps.short-sha.outputs.sha }}
run: ./gradlew :build :githubActionOutput --stacktrace
- name: GitHub Action Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ steps.build.outputs.artifact_name }}
path: ${{ steps.build.outputs.artifact_path }}