mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-04-20 20:21:18 +02:00
Compare commits
3 Commits
d5fa852369
...
9fbeb36109
Author | SHA1 | Date | |
---|---|---|---|
|
9fbeb36109 | ||
|
c321f33390 | ||
|
cbb46bdfe6 |
12
.github/workflows/docs.yml
vendored
12
.github/workflows/docs.yml
vendored
@ -3,6 +3,9 @@ name: Docs
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master-exraildoc ]
|
branches: [ master-exraildoc ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -11,17 +14,16 @@ jobs:
|
|||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.1
|
||||||
- name: Requirements
|
- name: Requirements
|
||||||
# Allow sphinx-rtd-theme to choose the versions of sphinx & docutils
|
|
||||||
run: |
|
run: |
|
||||||
pip3 install -r requirements.txt
|
pip3 install -r requirements.txt
|
||||||
|
sudo apt-get install doxygen
|
||||||
- name: Build docs
|
- name: Build docs
|
||||||
run: |
|
run: |
|
||||||
|
cd docs
|
||||||
make html
|
make html
|
||||||
echo 'dcc-ex.com' > docs/_build/html/CNAME
|
touch _build/html/.nojekyll
|
||||||
touch docs/_build/html/.nojekyll
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
if: github.ref == 'refs/heads/sphinx'
|
uses: JamesIves/github-pages-deploy-action@ba1486788b0490a235422264426c45848eac35c6
|
||||||
uses: JamesIves/github-pages-deploy-action@ba1486788b0490a235422264426c45848eac35c6 # v4.4.1
|
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
branch: gh-pages # The branch the action should deploy to.
|
branch: gh-pages # The branch the action should deploy to.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user