mirror of
https://github.com/olofk/serv.git
synced 2026-01-26 11:41:51 +00:00
Build website automatically and publish to gh-pages
This commit is contained in:
committed by
Olof Kindgren
parent
0c601f0872
commit
5c303f46b4
26
.github/workflows/pages.yml
vendored
Normal file
26
.github/workflows/pages.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
docs:
|
||||
name: Build documentation
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v1
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python3 -m pip install --upgrade pip
|
||||
pip install -r doc/requirements.txt
|
||||
- name: Build sphinx documentation
|
||||
run: |
|
||||
make -C doc html
|
||||
- name: Deploy to gh-pages
|
||||
uses: JamesIves/github-pages-deploy-action@4.1.1
|
||||
with:
|
||||
branch: gh-pages # The branch the action should deploy to.
|
||||
folder: doc/_build/html # The folder the action should deploy.
|
||||
Reference in New Issue
Block a user