In a project without home_page, the automatically created Github Actions workflow fails in the step "Copy API documentation to home_page/docs" with the following error:
Run cp -r .lake/build/doc home_page/docs
cp -r .lake/build/doc home_page/docs
shell: /usr/bin/bash -e {0}
env:
HOME_PAGE_EXISTS: false
cp: cannot create directory 'home_page/docs': Permission denied
Error: Process completed with exit code 1.
After some debugging, I found that the preceding step "Build blueprint and copy to home_page/blueprint" runs its script as root and not the default build user. Part of that step is
which creates the directory with root permissions, making it inaccessible to the regular build user.
To fix this, it seems sufficient to create the home_page directory automatically in step "Check for home_page folder" if it doesn't exist already.
In a project without
home_page, the automatically created Github Actions workflow fails in the step "Copy API documentation tohome_page/docs" with the following error:After some debugging, I found that the preceding step "Build blueprint and copy to
home_page/blueprint" runs its script asrootand not the default build user. Part of that step iswhich creates the directory with
rootpermissions, making it inaccessible to the regular build user.To fix this, it seems sufficient to create the
home_pagedirectory automatically in step "Check forhome_pagefolder" if it doesn't exist already.