mirror of
https://github.com/p2p-ld/docs.git
synced 2024-11-12 17:54:30 +00:00
build with github action
This commit is contained in:
parent
b7c9d42329
commit
13a4e9e39b
2 changed files with 39 additions and 1 deletions
38
.github/workflows/sphinx.yml
vendored
Normal file
38
.github/workflows/sphinx.yml
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
name: Deploy
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write # To push a branch
|
||||
pull-requests: write # To create a PR from that branch
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Install poetry
|
||||
uses: snok/install-poetry@v1.5.1
|
||||
with:
|
||||
virtualenvs-create: true
|
||||
virtualenvs-in-project: true
|
||||
- name: Load cached venv
|
||||
id: cached-poetry-dependencies
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: .venv
|
||||
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
|
||||
- name: Install dependencies
|
||||
run: poetry install
|
||||
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
|
||||
- name: build docs
|
||||
run: make html
|
||||
- name: deploy to gh-pages
|
||||
uses: JamesIves/github-pages-deploy-action@v4
|
||||
with:
|
||||
folder: build/html
|
||||
|
||||
|
|
@ -31,7 +31,7 @@ exclude_patterns = []
|
|||
|
||||
html_theme = 'furo'
|
||||
html_static_path = ['_static']
|
||||
|
||||
html_baseurl = '/docs/'
|
||||
|
||||
# -----------
|
||||
# Extension config
|
||||
|
|
Loading…
Reference in a new issue