Merge branch 'release' into devel #156
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
name: documentation | |
on: | |
push: | |
branches: [devel] | |
jobs: | |
build: | |
name: Sphinx Pages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup and build | |
run: | | |
sudo apt-get install python3-pip | |
pip3 install sphinx sphinx-vhdl sphinx_rtd_theme GitPython | |
mkdir public | |
mkdir public/html | |
cp doc/source/index.html public/html/ | |
sphinx-build -M html doc/source public/devel | |
git checkout release | |
sphinx-build -M html doc/source public/release | |
mv public/release/html/ public/html/release | |
mv public/devel/html/ public/html/devel | |
touch public/html/.nojekyll | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: public/html |