Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6275adf

Browse filesBrowse files
committed
see if docs get deployed
1 parent cd6e105 commit 6275adf
Copy full SHA for 6275adf

File tree

1 file changed

+40
-0
lines changed
Filter options

1 file changed

+40
-0
lines changed

‎.github/workflows/docs.yml

Copy file name to clipboard
+40Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Docs
2+
on: [push, release]
3+
4+
jobs:
5+
notebooks:
6+
name: "Build the notebooks for the docs"
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
with:
11+
lfs: true
12+
- name: Set up Python
13+
uses: actions/setup-python@v5
14+
with:
15+
python-version: 3.11
16+
- name: Install llvmpipe and lavapipe for offscreen canvas
17+
run: |
18+
sudo apt-get update -y -qq
19+
sudo apt-get install --no-install-recommends -y ffmpeg libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers git-lfs
20+
- name: Install dev dependencies
21+
run: |
22+
python -m pip install --upgrade pip setuptools
23+
# remove pygfx from install_requires, we install using pygfx@main
24+
sed -i "/pygfx/d" ./setup.py
25+
pip install git+https://github.com/pygfx/pygfx.git@main
26+
pip install -e ".["docs"]"
27+
- name: Show wgpu backend
28+
run:
29+
python -c "from examples.tests.testutils import wgpu_backend; print(wgpu_backend)"
30+
- name: build docs
31+
run: |
32+
cd docs
33+
RTD_BUILD=1 make html
34+
- name: Deploy docs
35+
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
36+
with:
37+
server: ${{ secrets.DOCS_SERVER }}
38+
username: ${{ secrets.DOCS_USERNAME }}
39+
password: ${{ secrets.DOCS_PASSWORD }}
40+
local-dir: docs/build/html/

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.