-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (44 loc) · 1.28 KB
/
maven.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
43
44
on:
push:
jobs:
maven:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
issues: read
checks: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
cache: maven
- run: mvn --version
- run: |
mvn $([ "$ACTIONS_RUNNER_DEBUG" = "true" ] && echo --debug) --batch-mode --strict-checksums --threads=2C \
-DaltDeploymentRepository=github::https://maven.pkg.github.com/${{ github.repository }} -DdeployAtEnd \
verify site:3.21.0:site source:jar-no-fork javadoc:jar artifact:buildinfo deploy:3.1.3:deploy
env:
GITHUB_TOKEN: ${{ github.token }}
- uses: actions/upload-pages-artifact@v3
with:
path: target/site/
- uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: target/*-reports/TEST-*.xml
deploy-site:
needs: maven
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4