1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-02-27 02:56:04 +01:00
CommandStation-EX/.github/workflows/docs.yml

37 lines
887 B
YAML
Raw Normal View History

2025-02-02 23:25:15 +01:00
name: Docs
on:
push:
2025-02-05 00:58:48 +01:00
branches:
- master-exraildoc
- master-exraildocdev
2025-02-04 01:19:37 +01:00
pull_request:
branches: [ master ]
workflow_dispatch:
2025-02-02 23:25:15 +01:00
jobs:
build:
runs-on: ubuntu-latest
steps:
2025-02-05 00:58:48 +01:00
- name: Checkout
2025-02-02 23:25:15 +01:00
uses: actions/checkout@v4.1.1
2025-02-05 00:58:48 +01:00
- name: Install Requirements
2025-02-02 23:25:15 +01:00
run: |
2025-02-05 00:58:48 +01:00
python -m pip install --upgrade pip
2025-02-03 23:29:17 +01:00
pip3 install -r requirements.txt
2025-02-04 02:37:40 +01:00
sudo apt-get install doxygen
2025-02-05 00:58:48 +01:00
- name: Build Prod docs
2025-02-02 23:25:15 +01:00
run: |
2025-02-04 01:19:37 +01:00
cd docs
2025-02-04 02:37:40 +01:00
make html
touch _build/html/.nojekyll
2025-02-05 00:58:48 +01:00
2025-02-02 23:25:15 +01:00
- name: Deploy
2025-02-04 02:37:40 +01:00
uses: JamesIves/github-pages-deploy-action@ba1486788b0490a235422264426c45848eac35c6
2025-02-02 23:25:15 +01:00
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
folder: docs/_build/html # The folder the action should deploy.