Closes #14 #28
This file contains hidden or 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: Documentation Update | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| docs: | |
| runs-on: ubuntu-latest | |
| name: Generate Documentation | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| - name: Install Dev Dependencies | |
| run: composer update | |
| - name: Generate Documentation | |
| run: php ./makeDocs.php | |
| - name: Commit & Push to Wiki | |
| run: | | |
| cd docs | |
| git checkout master | |
| git config user.email "actions@github.com" | |
| git config user.name "GitHub Actions - update documentation" | |
| git add *.md | |
| (git commit -m "Auto-Update Documentation" && git push) || echo "No changes to commit" | |
| cd .. | |
| - name: Commit & Push Submodule Update to Main Repo | |
| uses: Andro999b/push@v1.3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| message: "Auto-updated documentation" |