-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (38 loc) · 1.29 KB
/
doc-compiler.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: Doc Compiler
on:
push:
branches: [ '*' ]
jobs:
compile-docs:
name: Generate Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout Arucas
uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Generate Documentations
run: ./gradlew run --args="-cmdLine false -generate generated" --stacktrace --no-daemon
- name: Copy Extensions
uses: canastro/copy-file-action@master
with:
source: "generated/markdown/Extensions.md"
target: "docs/"
- name: Copy Classes
uses: canastro/copy-file-action@master
with:
source: "generated/markdown/Classes.md"
target: "docs/"
- name: Concatenate Docs
run: ./gradlew run --args="-cmdLine false -run .github/scripts/ConcatenateDocs.arucas" --stacktrace --no-daemon
- name: Commit Changes
continue-on-error: true
run: |
git config --global user.name 'github-actions-bot'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git commit -m "Update generated documentation" || exit 0
git push