forked from oceanobservatories/ion-functions
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (26 loc) · 831 Bytes
/
docs-preview.yml
File metadata and controls
34 lines (26 loc) · 831 Bytes
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
name: Deploy docs preview to GitHub Pages
on:
push:
branches:
- documentation
workflow_dispatch:
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install dependencies
run: pip install numpy scipy gsw ppigrf numexpr mkdocs-material mkdocstrings[python]
- name: Add package to PYTHONPATH
run: echo "PYTHONPATH=$PYTHONPATH:$(pwd)" >> $GITHUB_ENV
- name: Set fork site_url
run: |
sed -i "s|site_url:.*|site_url: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/|" mkdocs.yml
- name: Deploy
run: mkdocs gh-deploy --force