mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-04-08 06:30:12 +02:00
Refactor workflow
This commit is contained in:
parent
c321f33390
commit
9fbeb36109
10
.github/workflows/docs.yml
vendored
10
.github/workflows/docs.yml
vendored
@ -14,18 +14,16 @@ jobs:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v4.1.1
|
||||
- name: Requirements
|
||||
# Allow sphinx-rtd-theme to choose the versions of sphinx & docutils
|
||||
run: |
|
||||
pip3 install -r requirements.txt
|
||||
sudo apt-get install doxygen
|
||||
- name: Build docs
|
||||
run: |
|
||||
cd docs
|
||||
make github
|
||||
echo 'dcc-ex.com' > docs/_build/html/CNAME
|
||||
touch docs/_build/html/.nojekyll
|
||||
make html
|
||||
touch _build/html/.nojekyll
|
||||
- name: Deploy
|
||||
if: github.ref == 'refs/heads/sphinx'
|
||||
uses: JamesIves/github-pages-deploy-action@ba1486788b0490a235422264426c45848eac35c6 # v4.4.1
|
||||
uses: JamesIves/github-pages-deploy-action@ba1486788b0490a235422264426c45848eac35c6
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
branch: gh-pages # The branch the action should deploy to.
|
||||
|
Loading…
Reference in New Issue
Block a user