forked from ari4java/ari4java
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·46 lines (43 loc) · 1.18 KB
/
gradle.yml
File metadata and controls
executable file
·46 lines (43 loc) · 1.18 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
34
35
36
37
38
39
40
41
42
43
44
45
46
name: ARI4Java Build
on:
push:
branches:
- master
pull_request:
branches:
- master
# release:
# types: [published]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '8'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew clean :codegen:runCodegen build
if: github.event_name != 'release'
- name: Build & Publish with Gradle
env:
BUILD_NUMBER: ${{ env.GITHUB_RUN_NUMBER }}
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
run: ./gradlew clean :codegen:runCodegen buildProps build bintrayUpload
if: github.event_name == 'release'
- name: Archive Reports
uses: actions/upload-artifact@v4
with:
name: report-folder
path: build/reports