-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (46 loc) · 1.2 KB
/
build-all.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
name: Build All
on:
workflow_dispatch:
push:
branches:
- '*'
tags:
- '*'
env:
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}
MAVEN_USER: ${{ secrets.MAVEN_USER }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '21'
distribution: 'adopt'
cache: 'gradle'
- name: Set up caching
uses: actions/cache@v3
with:
path: ~/.konan
key: ${{ runner.os }}-konan
- name: Gradle Build
uses: gradle/gradle-build-action@v2
with:
arguments: -Pproduction=true build
- name: Store reports
if: failure()
uses: actions/upload-artifact@v3
with:
name: reports
path: |
**/build/reports/
**/build/test-results/
- name: Gradle Publish
uses: gradle/gradle-build-action@v2
with:
arguments: -Pproduction=true -PmavenCentralUsername=${{ secrets.MAVEN_CENTRAL_USER }} -PmavenCentralPassword=${{ secrets.MAVEN_CENTRAL_TOKEN }} publish