-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 882 Bytes
/
ci.yml
File metadata and controls
40 lines (32 loc) · 882 Bytes
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
name: Java CI with Maven
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Build and test
run: mvn -B verify
- name: Generate Javadoc
run: mvn javadoc:javadoc
- name: Copy Javadoc to temp folder
run: |
mkdir -p temp-docs
cp -R target/site/apidocs/* temp-docs/
touch temp-docs/.nojekyll
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GH_PAGES_TOKEN }}
publish_dir: ./temp-docs
publish_branch: gh-pages
force_orphan: true