Skip to content

Commit

Permalink
Create generate-eluna-docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Kitzunu authored Jan 20, 2025
1 parent d9d5ed6 commit 2d3a26e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/generate-eluna-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: generate-eluna-docs
on:
workflow_dispatch:
schedule:
- cron: '0 06 * * *'

jobs:
build-doxygen-doc:
permissions: write-all
runs-on: ubuntu-24.04
steps:
- name: checkout
uses: actions/checkout@v4
- name: "clone mod-eluna source"
run: |
git clone --single-branch https://github.com/azerothcore/mod-eluna
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
architecture: 'x64'
- name: Install Python dependencies
run: pip install jinja2 typedecorator markdown
- name: Compile documentation
run: |
cd src/LuaEngine/docs/
python -m ElunaDoc
- name: "commit eluna docs"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd docs/
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
rm -rf mod-eluna
git add .
git commit -m "chore: Eluna documentation 🎉"
git push

0 comments on commit 2d3a26e

Please sign in to comment.