Skip to content

maven-site-deploy

maven-site-deploy #40

name: maven-site-deploy
on:
schedule:
- cron: '11 0 27 * *'
jobs:
maven-site-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
server-id: github
- uses: actions/cache@v4
with:
path: ~/.m2/repository
key: maven-repo-${{ hashFiles('**/pom.xml') }}-site-deploy
restore-keys: maven-repo-
- uses: actions/cache@v4
with:
path: ~/.cache/opennlp-model-generator
key: opennlp-model-cache-${{ github.run_id }}
restore-keys: opennlp-model-cache-
- run: mvn clean install
- run: mvn site
- uses: JamesIves/github-pages-deploy-action@v4
with:
folder: target/site
branch: gh-pages
git-config-name: abzif
git-config-email: abzif@users.noreply.github.com
commit-message: 'Site publish'
single-commit: true