@Jean Paul Larach , Firstly, apologies for the delay from over the weekend.
Based on my understanding of your scenario, to deploy to a virtual directory using the azure/webapps-deploy
GitHub action, you can specify the virtual directory path in the app-name
parameter. For example, if your virtual directory path is /myapp
, you can set the app-name
parameter to myapp
.
You may take a look the example YAML configuration for deploying to a virtual directory:
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v2
with:
app-name: myapp/virtualdirectory
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/myapp
In this example, the app-name
parameter is set to myapp/virtualdirectory
, which specifies the virtual directory path. The publish-profile
parameter specifies the publish profile file, and the package
parameter specifies the path to the package or folder to deploy.
Additionally, you may test it our with "VirtualApplication" input parameter. Here's an example YAML code snippet:
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v2
with:
app-name: 'myapp'
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
VirtualApplication: 'virtual-directory-name'
In this example, the "VirtualApplication" input parameter is set to the name of the virtual directory you want to deploy to. Ensure to replace 'myapp' with the name of your Azure Web App, and 'virtual-directory-name' with the name of your virtual directory.
Reference: