-
Notifications
You must be signed in to change notification settings - Fork 48
69 lines (58 loc) · 1.75 KB
/
docs.yml
File metadata and controls
69 lines (58 loc) · 1.75 KB
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
69
# TODO: This needs refactor
name: Compile documentation
on:
workflow_dispatch:
pull_request:
branches: ['**docs*']
push:
branches: ['master', 'release/*']
release:
types: [published]
jobs:
docs:
runs-on: ubuntu-22.04
container:
image: s22s/debian-openjdk-conda-gdal:6790f8d
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: coursier/cache-action@v7
- uses: olafurpg/setup-scala@v13
with:
java-version: adopt@1.11
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Conda dependencies
run: |
# $CONDA_DIR is an environment variable pointing to the root of the miniconda directory
$CONDA_DIR/bin/conda install -c conda-forge --yes --file pyrasterframes/src/main/python/requirements-condaforge.txt
- name: Build documentation
run: sbt makeSite
- name: Collect artifacts
if: ${{ failure() }}
run: |
mkdir -p /tmp/core_dumps
cp core.* *.hs /tmp/core_dumps 2> /dev/null || true
mkdir -p /tmp/markdown
cp pyrasterframes/target/python/docs/*.md /tmp/markdown 2> /dev/null || true
- name: Upload core dumps
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: core-dumps
path: /tmp/core_dumps
- name: Upload markdown
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: markdown
path: /tmp/markdown
- name: Upload rf-site
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: rf-site
path: docs/target/site