-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (30 loc) · 1019 Bytes
/
release-site.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
35
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Update doc website
on:
push:
branches: [ "master" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: maven-settings-xml-action
uses: whelk-io/maven-settings-xml-action@v4
with:
servers: '[{
"id": "github",
"username": "${{ secrets.OAUTH_GITHUB_PAGES_USERNAME }}",
"password": "${{ secrets.OAUTH_GITHUB_PAGES_PASS }}"
}]'
- name: View settings.xml
run: cat ~/.m2/settings.xml
- name: Set up JDK 20
uses: actions/setup-java@v3
with:
java-version: '20'
distribution: 'temurin'
cache: maven
- name: Build and deploy to gh-pages
run: mvn -B site-deploy --file pom.xml