Thanks to visit codestin.com
Credit goes to github.com

Skip to content

target-path: "Forwarding" #8

target-path: "Forwarding"

target-path: "Forwarding" #8

Workflow file for this run

name: Deploy ASP.NET MVC App deploy to Azure Web App
on: [push]
permissions:
id-token: write
contents: read
env:
AZURE_WEBAPP_NAME: Net48Actions # set this to your application's name
AZURE_WEBAPP_PACKAGE_PATH: "./Forwarding" # set this to the path to your web app project, defaults to the repository root
NUGET_VERSION: "5.3.x" # set this to the dot net version to use
jobs:
build-and-deploy:
runs-on: windows-latest
steps:
# checkout the repo
- uses: actions/checkout@main
- uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_01A6486157CC473899D1B4C58DEF8448 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_0713827CCEA94FE784516A9D23A1950F }}
subscription-id: ${{ vars.AZURE_SUBSRIPTION_ID }}
- name: Install Nuget
uses: nuget/setup-nuget@v1
with:
nuget-version: ${{ env.NUGET_VERSION}}
- name: NuGet to restore dependencies as well as project-specific tools that are specified in the project file
run: nuget restore
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Run MSBuild
run: msbuild .\SimpleFrameworkApp.sln
- name: "Run Azure webapp deploy action using publish profile credentials"
uses: azure/webapps-deploy@v3
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }} # Replace with your app name
package: .
# Azure logout
- name: logout
run: |
az logout