-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1 KB
/
maven-site-deploy.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
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