-
Notifications
You must be signed in to change notification settings - Fork 2k
44 lines (42 loc) · 1.47 KB
/
build.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
name: Java CI with Maven Azure
on:
push:
branches: [ yonghui/move-starter-readme ]
pull_request:
branches: [ yonghui/move-starter-readme ]
jobs:
build:
name: "Test with ${{ matrix.version }}"
strategy:
matrix:
version: [ 8.0.275.hs-adpt ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
- name: Download ${{ matrix.version }}
uses: sdkman/sdkman-action@master
id: sdkman
with:
candidate: java
version: ${{ matrix.version }}
- name: Set up ${{ matrix.version }}
uses: actions/setup-java@v1
with:
java-version: 8
jdkFile: ${{ steps.sdkman.outputs.file }}
- name: Build docs
run: |
cd sdk/spring/docs
mvn clean install
- name: Upload docs
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
github-token: ${{secrets.GITHUB_TOKEN}}
branch: gh-pages
folder: sdk/spring/docs/target/generated-docs