-
Notifications
You must be signed in to change notification settings - Fork 8
40 lines (38 loc) · 1.09 KB
/
merge.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
38
39
40
# SPDX-License-Identifier: Apache-2.0
# Copyright Contributors to the ODPi Egeria project.
name: "Merge"
on:
push:
branches: [main, release-*, feature-*]
jobs:
build:
runs-on: ubuntu-latest
name: "Merge"
if: startsWith(github.repository,'odpi/')
steps:
- uses: actions/checkout@v3
name: Checkout source
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'
- uses: gradle/wrapper-validation-action@v1
name: Validate gradle wrapper
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-merge-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-merge-
- name: Build
run: ./gradlew build
# --
- name: Upload Samples
uses: actions/upload-artifact@v3
with:
name: Egeria API Samples
path: '**/build/libs/*.jar'