ci: add github action to update automatically doxygen doc weekly (#156) #1
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: generate-doxygen-doc | ||
Check failure on line 1 in .github/workflows/doxygen.yml GitHub Actions / .github/workflows/doxygen.ymlInvalid workflow file
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '@weekly' | ||
jobs: | ||
build-doxygen-doc: | ||
permissions: write-all | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: "clone azerothcore-wotlk source" | ||
run: | | ||
git clone --single-branch https://github.com/azerothcore/azerothcore-wotlk | ||
mv azerothcore-wotlk pages/doxygen/azerothcore-wotlk | ||
- name: "run doxygen" | ||
uses: mattnotmitt/[email protected] | ||
with: | ||
working-directory: 'pages/doxygen/' | ||
doxyfile-path: 'Doxyfile' | ||
- name: "check doxygen output" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
cd pages/doxygen/ | ||
git config --global user.name "Helias" | ||
git config --global user.email "[email protected]" | ||
rm -rf azerothcore-wotlk | ||
git add . | ||
git commit -m "chore: update doxygen documentation" | ||
git push |