-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (31 loc) · 1020 Bytes
/
build_docs.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
36
37
38
name: Build Documentation for GitHub Pages
on:
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build the JavaDocs
run: mvn org.apache.maven.plugins:maven-javadoc-plugin:javadoc -Prelease
- name: Copy the Documentation
run: rsync -a docs/ target/site/
- name: Transfer Documentation to royalur.github.io
uses: cpina/[email protected]
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
with:
source-directory: target/site/
target-directory: RoyalUrJava/
destination-github-username: RoyalUr
destination-repository-name: royalur.github.io
user-email: [email protected]
target-branch: main