forked from fury-gl/fury
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (62 loc) · 1.94 KB
/
doc.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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Docs - No examples
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -c "import sys; print(sys.version)"
python -m pip install -U pip setuptools>=30.3.0 wheel
python -m pip install -U numpy
python -m pip install -U -r requirements/default.txt
python -m pip install -U -r requirements/optional.txt
python -m pip install -U -r requirements/docs.txt
- name: Install FURY
run: pip install .
- name: Setup Headless
run: ci/setup_headless.sh
- name: Build docs
run: |
cd docs
make -C . html-no-examples
- name: Deploy Devs
if: success() && github.ref == 'refs/heads/master'
uses: JamesIves/github-pages-deploy-action@v4
with:
ssh-key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
repository-name: fury-gl/fury-website
folder: ./docs/build/html
target-folder: dev
- name: Update last release
if: success() && github.ref == 'refs/heads/master'
uses: JamesIves/github-pages-deploy-action@v4
with:
ssh-key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
repository-name: fury-gl/fury-website
folder: ./docs/build/html-web-only
target-folder: v0.10.x
clean: false