-
Notifications
You must be signed in to change notification settings - Fork 47
55 lines (46 loc) · 1.28 KB
/
mkdocsdeploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Publish docs via GitHub Pages
on:
push:
branches:
- master
paths:
# Only rebuild website when docs have changed
# Comment out when testing locally via act!
- 'docs/**'
- 'examples/**'
- 'CHANGELOG.md'
- 'mkdocs.yml'
jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install GDAL
run: |
sudo apt update
sudo add-apt-repository ppa:ubuntugis/ppa -y
sudo apt update -y
sudo apt-get install python3-dev -y
sudo apt-get install libpq-dev gdal-bin libgdal-dev -y
- name: Install Poetry
uses: snok/[email protected]
with:
version: 1.7.1
- name: Install dependencies
run: |
poetry install --no-interaction --no-ansi
- name: Create symlinks for examples and changelog
run: |
ls
mkdir docs/examples
mv examples/* docs/examples
mv CHANGELOG.md docs
- name: Deploy docs
run: |
poetry run mkdocs gh-deploy --force -m "update gh-pages [ci skip]"