Merge branch 'master' of https://github.com/ElunaLuaEngine/Eluna #14
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: documentation | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'master' | |
jobs: | |
Push-Docs-To-Website: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- 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 ${{ github.workspace }}/docs/ | |
python -m ElunaDoc | |
- name: Create pull request | |
run: | | |
chmod +x "${GITHUB_WORKSPACE}/.github/workflows/create-pr.sh" | |
"${GITHUB_WORKSPACE}/.github/workflows/create-pr.sh" | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | |
SOURCE_FOLDER: '${{ github.workspace }}/docs/build' | |
DESTINATION_REPO: 'elunaluaengine/elunaluaengine.github.io' | |
DESTINATION_FOLDER: '' | |
DESTINATION_BASE_BRANCH: 'master' | |
DESTINATION_HEAD_BRANCH: 'master' | |
PR_TITLE: 'Update Eluna documentation' | |
COMMIT_MESSAGE: 'Update Eluna documentation' | |
USER_EMAIL: 'foe@elunatech.com' | |
USER_NAME: 'Foereaper' |