-
Notifications
You must be signed in to change notification settings - Fork 372
38 lines (38 loc) · 1.24 KB
/
documentation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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@v4
- name: Set up Python
uses: actions/setup-python@v4
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: '[email protected]'
USER_NAME: 'Foereaper'