updated rdf2vec example #484
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: JavaDoc | |
on: [push] | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
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@v1 | |
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.9' | |
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/github-pages-deploy-action@4.0.0 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages # The branch the action should deploy to. | |
folder: target/site/apidocs | |
target-folder: javadoc_latest |