Skip to content

main_mitelkshome.yml #7

main_mitelkshome.yml

main_mitelkshome.yml #7

name: Build and deploy ASP.Net Core app to Azure Web App - MitelksHome

Check failure on line 1 in .github/workflows/main_mitelkshome.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main_mitelkshome.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: deploy
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: '8.x'
- name: Build with dotnet
run: dotnet build MainPage/MainPage.csproj --configuration Release
- name: dotnet publish
run: dotnet publish MainPage/MainPage.csproj -c Release -o ${{ runner.temp }}/myapp
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
with:
name: .net-app
path: ${{ runner.temp }}/myapp
deploy:
runs-on: windows-latest
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to