Skip to content

Commit

Permalink
Update create html workflow to set up a virtual display
Browse files Browse the repository at this point in the history
  • Loading branch information
ehennestad committed Dec 10, 2024
1 parent 76cc5cd commit 128eeae
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/create_html_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,23 @@ jobs:
with:
release: R2023b # R2020a This is necessary to create the pages for types

- name: Set up dependencies
run: |
sudo apt-get update
sudo apt-get install -y xvfb
- name: Start virtual frame buffer
run: |
export DISPLAY=:100
echo "Starting virtual frame buffer..."
Xvfb -ac :100 -screen 0 1280x1024x24 > /dev/null &
- name: Create pages
uses: matlab-actions/run-command@v2
with:
command: |
addpath(genpath('tools'));
matnwb_setup;
matnwb_generateDocs;
matnwb_exportTutorials(ExportFormat=".html",RunLivescript=false);
- name: Checkout gh-pages branch
Expand Down

0 comments on commit 128eeae

Please sign in to comment.