File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish PyGreSQL documentation
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-22.04
11+
12+ steps :
13+ - name : Check out docs
14+ uses : actions/checkout@v3
15+ with :
16+ repository : " PyGreSQL"
17+ - name : Set up Python 3.11
18+ uses : actions/setup-python@v4
19+ with :
20+ python-version : 3.11
21+ - name : Install dependencies
22+ run : |
23+ sudo apt install libpq-dev
24+ python -m pip install --upgrade pip
25+ pip install .
26+ pip install "sphinx>=7,<8"
27+ - name : Create docs with Sphinx
28+ run : |
29+ cd docs
30+ make html
31+ - name : Deploy docs to GitHub pages
32+ uses : peaceiris/actions-gh-pages@v3
33+ with :
34+ github_token : ${{ secrets.GITHUB_TOKEN }}
35+ publish_branch : gh-pages
36+ publish_dir : docs/_build/html
37+ cname : pygresql.org
38+ enable_jekyll : false
39+ force_orphan : true
You can’t perform that action at this time.
0 commit comments