downgrade setup java to v3 to test if it works with java 8 #504
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: Markdown Doclet | |
on: [push] | |
jobs: | |
build-and-deploy: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false # this is required for the javadoc deploy plugin | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '8' | |
- name: Print maven version | |
run: mvn -version | |
- name: Cache Maven packages | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}-1 | |
- name: Build with Maven 📦 | |
run: mvn clean install -DskipTests=True | |
- name: Install the MarkDown DocLet 🔌 | |
run: | | |
cd ./documentation/melt_doclet | |
mvn clean install | |
- name: Generate MarkDown Documentation 📚 | |
run: mvn site -P ci-run,default | |
- name: Deploy MarkDown 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages # The branch the action should deploy to. | |
folder: target/site/apidocs/generated_markdown | |
target-folder: 4_available_matcher_components/generated_markdown |