Skip to content

Commit 9efdd17

Browse files
authored
create doc deploy workflow, add CNAME to MANIFEST.in (#513)
1 parent 876c402 commit 9efdd17

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/deploy.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy Sphinx Documentation to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- development # Adjust this to your default branch
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out the repository
13+
uses: actions/checkout@v3
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.11'
19+
20+
- name: Install system packages
21+
run: |
22+
sudo add-apt-repository universe multiverse
23+
sudo apt update && sudo apt install enchant-2 libffi-dev libssl-dev libxml2-dev libxslt1-dev gettext libfreetype-dev libjpeg-dev
24+
25+
- name: Install dependencies
26+
run: |
27+
pip install -r requirements.txt
28+
pip install "Jinja2<3.1" "sphinx==5.0.*"
29+
working-directory: doc
30+
31+
- name: Build documentation
32+
run: make html
33+
working-directory: doc # Adjust to your Sphinx docs directory
34+
35+
- name: Deploy to GitHub Pages
36+
uses: peaceiris/actions-gh-pages@v3
37+
with:
38+
github_token: ${{ secrets.GITHUB_TOKEN }}
39+
publish_dir: doc/_build/html

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
include LICENSE
2+
include CNAME
23
include README.rst
34
global-include *.proto
45
recursive-include src/pretix/static *

0 commit comments

Comments
 (0)