-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ModOrganizer2/qt6
Qt6, PyBind11, new linters...
- Loading branch information
Showing
31 changed files
with
6,392 additions
and
3,044 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,45 @@ | ||
name: Build Documentation | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
# Standard drop-in approach that should work for most people. | ||
- uses: ammaraskar/sphinx-action@master | ||
env: | ||
PYTHONPATH: . | ||
with: | ||
pre-build-command: "apt-get update -y && apt-get install -y libgl1-mesa-glx && cp stubs/2.4.0/mobase.pyi docs/mobase.py" | ||
docs-folder: "docs/" | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.11 | ||
- uses: abatilo/actions-poetry@v2 | ||
- name: Install | ||
run: | | ||
poetry install | ||
- name: Install libgl1 | ||
run: sudo apt install -y libgl1 libegl1 libglib2.0-0 libxkbcommon0 libdbus-1-3 | ||
- name: Copy stubs | ||
run: cp stubs/2.5.0/mobase-stubs/__init__.pyi docs/mobase.py | ||
- name: Build | ||
run: poetry run sphinx-build -b html docs/source docs/build | ||
env: | ||
PYTHONPATH: docs | ||
|
||
- name: Install SSH Client 🔑 | ||
uses: webfactory/ssh-agent@v0.4.1 | ||
with: | ||
ssh-private-key: ${{ secrets.DEPLOY_KEY }} | ||
- if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | ||
name: Install SSH Client 🔑 | ||
uses: webfactory/ssh-agent@v0.4.1 | ||
with: | ||
ssh-private-key: ${{ secrets.DEPLOY_KEY }} | ||
|
||
- name: Deploy 🚀 | ||
uses: JamesIves/github-pages-deploy-action@3.7.1 | ||
with: | ||
SSH: true | ||
REPOSITORY_NAME: ModOrganizer2/python-plugins-doc | ||
BRANCH: master | ||
FOLDER: docs/build/html | ||
- if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | ||
name: Deploy Documentation | ||
uses: JamesIves/github-pages-deploy-action@3.7.1 | ||
with: | ||
SSH: true | ||
REPOSITORY_NAME: ModOrganizer2/python-plugins-doc | ||
BRANCH: master | ||
FOLDER: docs/build |
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
This file was deleted.
Oops, something went wrong.
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
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
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
Oops, something went wrong.