-
Notifications
You must be signed in to change notification settings - Fork 6
63 lines (53 loc) · 1.5 KB
/
cd.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Build and Deploy
on:
push:
branches: [ "master" ]
permissions:
contents: write
checks: write
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Build
uses: gradle/gradle-build-action@v2
with:
gradle-version: 8.5
arguments: build
- name: Test
uses: gradle/gradle-build-action@v2
with:
gradle-version: 8.5
arguments: test
- name: Test Results
uses: mikepenz/action-junit-report@v4
if: always()
with:
fail_on_failure: true
require_tests: true
report_paths: '**/build/test-results/test/TEST-*.xml'
- name: Upload Jars
uses: actions/upload-artifact@v3
with:
name: QdrantJava
path: build/libs
publish:
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy javadoc to Github Pages
uses: dev-vince/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
java-version: "17"
java-distribution: "adopt" # The distributor of the target JDK. See https://github.com/actions/setup-java for more information.
project: gradle # The project type.
branch: "gh-pages" # The branch for the javadoc contents.