-
Notifications
You must be signed in to change notification settings - Fork 33
68 lines (52 loc) · 1.35 KB
/
pages.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
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Publish GitHub pages
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
defaults:
run:
shell: bash
jobs:
build:
container: isciences/exactextract-test-env:geos312
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install system dependencies
run: |
apt-get update
apt-get install -y pandoc
- name: install python dependencies
run: pip3 install --break-system-packages --upgrade -r python/doc/requirements.txt
- name: install exactextract
run: pip3 install --break-system-packages .
- name: download data files
run: ci/download_sample_data.sh python/doc
- name: configure
run: |
mkdir build
cd build
cmake -DBUILD_CLI=NO -DBUILD_PYTHON=YES -DBUILD_TEST=NO ..
- name: build
run: |
cd build
cmake --build . --target python_html
- name: upload docs
uses: actions/upload-pages-artifact@v3
with:
path: ./build/python/html
deploy:
runs-on: ubuntu-latest
needs: build
if: github.repository_owner == 'isciences' && github.ref == 'refs/heads/master'
steps:
- name: Deploy to GitHub pages
id: deployment
uses: actions/deploy-pages@v4