Skip to content

Commit c5349fc

Browse files
authored
Merge pull request #25 from LibreSign/feat/implement-deploy
chore: implement deploy
2 parents ded60fa + 4e1ac8c commit c5349fc

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy Sphinx Docs
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
repository_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repo
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: 3.11
20+
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install -r "docs/requirements.txt"
25+
26+
- name: Build Sphinx documentation
27+
run: |
28+
cd docs
29+
make all
30+
31+
- name: Deploy to GitHub Pages
32+
if: success()
33+
uses: crazy-max/ghaction-github-pages@v4
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
with:
37+
build_dir: _build
38+
fqdn: docs.libresign.coop
39+
jekyll: false

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
docs/_build/
1+
_build
22
volumes/
33

44
# Cache Python

0 commit comments

Comments
 (0)