-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (41 loc) · 1.21 KB
/
documentation.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
45
name: Documentation
on:
push:
pull_request:
release:
types: [ published ]
env:
JDK_DISTRIBUTION: zulu
JDK_VERSION: 11
jobs:
documentation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch history and tags; necessary for computing app version.
- name: Set up JDK ${{ env.JDK_VERSION }}
uses: actions/setup-java@v3
with:
distribution: ${{ env.JDK_DISTRIBUTION }}
java-version: ${{ env.JDK_VERSION }}
- name: Install pipenv
run: pipx install pipenv
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pipenv'
- name: Generate documentation with MkDocs
uses: gradle/gradle-build-action@v2
with:
arguments: 'printVersion :docs:mkdocsBuild'
- name: Set up Git credentials
run: |
git config user.name github-actions
git config user.email [email protected]
- name: Publish documentation to GitHub Pages
if: github.event_name == 'release'
uses: gradle/gradle-build-action@v2
with:
arguments: ':docs:mkdocsPublish'