Skip to content

Commit

Permalink
Setups directories earlier on to avoid permissions problems by jekyll…
Browse files Browse the repository at this point in the history
… build
  • Loading branch information
dpshelio committed Feb 12, 2025
1 parent 464880a commit b54103f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build_site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,19 @@ jobs:
python -m pip install -r .github/python/requirements.txt
- name: Building notes
run: make ready
- name: setup directories
run: |
mkdir contents
mkdir -p _site/jupyter-lite # created here so the permissions of the directory don't change
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build website
uses: actions/jekyll-build-pages@v1
- name: Build the JupyterLite site
run: |
find . -type d -name .pytest_cache -o -name .ruff_cache -o -name .doctrees | xargs rm -rf
mkdir contents
sudo mkdir _site/jupyter-lite # sudo because jekyll-build-pages creates the directory as a different user
find ch*/ -type f -name '*.ipynb' ! -name '*.nbconvert.ipynb' -exec rsync -R {} contents/ \;
sudo jupyter lite build --contents contents --output-dir _site/jupyter-lite
jupyter lite build --contents contents --output-dir _site/jupyter-lite
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

Expand Down

0 comments on commit b54103f

Please sign in to comment.