-
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (54 loc) · 1.33 KB
/
pages.yml
File metadata and controls
55 lines (54 loc) · 1.33 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Deploy Maven site to GitHub Pages
on:
workflow_dispatch: {}
issues:
types: [opened, edited, deleted]
release: {}
concurrency:
group: github-pages
cancel-in-progress: false
permissions:
contents: read
issues: read
pages: write
id-token: write
jobs:
test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
java-version: 21
distribution: 'temurin'
cache: maven
- name: Test with Maven
run: mvn clean test verify --file pom.xml
build:
runs-on: ubuntu-24.04
needs: test
environment:
name: github-pages
url: ${{ steps.deployment.outputs.url }}
steps:
- uses: actions/checkout@v5
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
java-version: 21
distribution: 'temurin'
cache: maven
- name: Deploy site
run: mvn clean site --file pom.xml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v4
with:
path: ./target/site
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4