-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (36 loc) · 1.26 KB
/
documentation.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
name: Documentation Build
on:
push:
branches:
- main # Reflects your active development branch
tags: ['*']
pull_request:
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python environment
run: |
sudo apt-get update
sudo apt-get install python3-pip
python3 -m pip install --upgrade pip
- name: Install GT4Py and atlas4py
run: |
git clone --branch fix_python_interp_path_in_cmake https://github.com/tehrengruber/gt4py.git
cd gt4py
pip install -r requirements-dev.txt
pip install .
pip install -i https://test.pypi.org/simple/ atlas4py
- uses: julia-actions/setup-julia@v1
with:
version: '1.8'
- name: Install Julia dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy documentation
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Used for Git operations by Documenter.jl
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If using SSH deploy keys for secure operations
run: julia --project=docs/ docs/make.jl