This is a very helpful article that I use as a reference and keep visiting over and over. However, I leave this note comment as a future reference and help for myself and others.
Because the Laravel app uses npm to build its assets and thus also the deploy.sh script on the server, then the deploy.yml needs to indicate that the github action server also needs npm to build the assets. So to the deploy.yml file you need to add the following:
This is a very helpful article that I use as a reference and keep visiting over and over. However, I leave this note comment as a future reference and help for myself and others.
Because the Laravel app uses
npmto build its assets and thus also thedeploy.shscript on the server, then thedeploy.ymlneeds to indicate that the github action server also needsnpmto build the assets. So to thedeploy.ymlfile you need to add the following:And if you are using
nvmon the server to install node then maybe you need to add the following to thedeploy.shscript