Skip to content

Commit 37438ea

Browse files
committed
Combine workflows into separate jobs.
1 parent 3747126 commit 37438ea

File tree

2 files changed

+31
-39
lines changed

2 files changed

+31
-39
lines changed

.github/workflows/docs.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/make.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- master
1010

1111
jobs:
12-
build:
12+
build-and-test:
1313
strategy:
1414
fail-fast: false
1515
matrix:
@@ -164,3 +164,33 @@ jobs:
164164
- name: Remove Secrets
165165
if: always()
166166
run: cmake -E rm -rf secrets
167+
168+
docs:
169+
runs-on: ubuntu-latest
170+
steps:
171+
172+
- name: Install Build Dependencies
173+
run: |
174+
cmake -E echo >> $${{env.ENV}}GITHUB_PATH $HOME/.local/bin
175+
sudo apt-get install -y doxygen
176+
pip install sphinx==3.2.1 sphinx_rtd_theme breathe
177+
178+
- name: Checkout Toolchain
179+
uses: actions/checkout@v2.3.1
180+
with:
181+
persist-credentials: false
182+
183+
- name: Build Website Documentation
184+
run: |
185+
cd docs
186+
make html
187+
cd build/html
188+
touch .nojekyll
189+
190+
- name: Upload Website Documentation
191+
uses: JamesIves/github-pages-deploy-action@3.7.1
192+
with:
193+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
194+
BRANCH: gh-pages
195+
FOLDER: docs/build/html
196+
CLEAN: true

0 commit comments

Comments
 (0)