I have a .Net 5 Azure Web App.
Currently I deploy .Net Web app from github using .yml file.
I want do deploy front-end from different github repository to wwwroot.
Unfortunately, "output_location" doesn't work for azure/webapps-deploy@v2. Any suggestions?
name: Build&Deploy Node.js app to Azure Web App
on:
push:
branches:
- master
workflow_dispatch:
env:
AZURE_WEBAPP_NAME: <name>
AZURE_WEBAPP_PACKAGE_PATH: 'build'
NODE_VERSION: '12.x' # node version to use
jobs:
build-and-deploy:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${<!-- -->{ env.NODE_VERSION }}
uses: actions/setup-node@v1
with:
node-version: ${<!-- -->{ env.NODE_VERSION }}
- name: npm install, build, and test
run: |
# Build the project, then
# deploy to Azure Web App.
npm install
CI=false npm run build --if-present
build/process.json
- name: 'Deploy to Azure WebApp'
uses: azure/webapps-deploy@v2
with:
app-name: ${<!-- -->{ env.AZURE_WEBAPP_NAME }}
slot-name: 'production'
publish-profile: ${<!-- -->{ secrets.AzureAppService_PublishProfile }}
package: ${<!-- -->{ env.AZURE_WEBAPP_PACKAGE_PATH }}
output_location: 'wwwroot'