Skip to content

Improve script to support: gateway list from file, logging to file, g… #101

Improve script to support: gateway list from file, logging to file, g…

Improve script to support: gateway list from file, logging to file, g… #101

Workflow file for this run

name: Build Sphinx doc
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Install pip packages
run: pip install sphinx==4.2.0 sphinx-rtd-theme==0.5.1
- name: Insatll package requirement
run: pip install -r requirements.txt
- name: Build the doc
run: |
cd docs
make html
- uses: actions/upload-artifact@v4
with:
name: DocumentationHTML
path: docs/_build/html/
- name: Publish doc on GithubIo
if: ${{ github.event_name == 'push' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html/