-
Notifications
You must be signed in to change notification settings - Fork 5
64 lines (55 loc) · 1.51 KB
/
ci.yaml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: openEQUELLA Admin Console Launcher CI
on:
push:
branches:
- master
- develop
- release/**
tags:
- "**"
pull_request:
branches:
- master
- develop
- release/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Gradle Cache
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Build with Gradle
run: ./gradlew build
- name: Generate artefact hashes
run: ../../generate-hashes.sh *
working-directory: build/distributions
- name: Save artefacts
uses: actions/[email protected]
with:
name: Artefacts
path: build/distributions
- name: Save Coverage Report
uses: actions/[email protected]
with:
name: CoverageReport
path: build/reports/tests/test
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: build/distributions/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}