Skip to content

Update main.yml

Update main.yml #15

Workflow file for this run

name: Build and deploy ASP.Net Core app to Azure Web App - DotNetNC
on:
push:
branches: ["main"]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: '7.x'
- name: Build with dotnet
run: dotnet build --configuration Release
- name: dotnet publish
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp