Fixes #74 #40
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 EssentialAddons | |
uses: actions/checkout@v3 | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Generate Documentations | |
run: ./gradlew runServer --args="-- -generate ../../../README.md" --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 |