-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (35 loc) · 1.04 KB
/
deploy.yaml
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
name: Deploy documentation
on:
push:
branches:
- main
env:
JAVA_VERSION: 17
permissions:
contents: write
jobs:
build-doc-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ env.JAVA_VERSION }}
cache: 'maven'
- name: Build with Maven
run: mvn -B clean package -DskipTests --file pom.xml
- name: Build doc
uses: addnab/docker-run-action@v3
with:
image: antora/antora:latest
options: -v ${{ github.workspace }}:/antora
run: antora generate antora-playbook.yaml
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build/site # The folder the action should deploy.
branch: gh-pages