Hey @Schwartz, Matt
It's tough to say what could've led up to that error. In reviewing your yaml file, I'm personally pointing the finger that the zip unzip that is done between the build and deployment steps. Without seeing more of the deployment log, my assumption is the files may not have been unzipped as expected. The startup command Linux hosts is /home/site/startup.sh
and this bash script will look for your php app in /home/site/wwwroot
.
Having said, you don't necessarily need to zip and unzip your artifacts. On the build, the last step can be
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v2
with:
name: php-app
path: .
and the on the deploy side,
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v2
with:
name: php-app
- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v2
id: deploy-to-webapp
with:
app-name: 'yourappservicename'
slot-name: 'production'
publish-profile: $
package: .
You can refer to https://azureossd.github.io/2022/04/22/PHP-Laravel-deploy-on-App-Service-Linux/index.html for a complete reference as well as additional configuration information.