add method #158
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |