-
Notifications
You must be signed in to change notification settings - Fork 12
49 lines (47 loc) · 1.7 KB
/
java_documentation.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
name: JavaDoc
on: [push]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false # this is required for the javadoc deploy plugin
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
- name: Print maven version
run: mvn -version
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: |
~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}-1
- name: Cache Python packages
uses: actions/cache@v2
with:
path: |
~/.cache/pip
key: ${{ runner.os }}-python-${{ hashFiles('**/requirements.txt') }}-1
- name: Setup Python
uses: actions/setup-python@v5
with:
# TODO: the latest pytorch version is only available for 3.9 and not yet in 3.10 - replace it with 3.x if it is available
python-version: '3.11'
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- name: Install python dependencies
run: pip install -r ./matching-ml/src/main/resources/requirements.txt
- name: Build with Maven 📦
run: mvn clean install -DskipTests=True
- name: Generate JavaDoc Documentation 📚
run: mvn clean javadoc:aggregate
- name: Deploy JavaDoc 🚀
uses: JamesIves/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
folder: target/site/apidocs
target-folder: javadoc_latest