Skip to content

Create dotnet-desktop.yml #1

Create dotnet-desktop.yml

Create dotnet-desktop.yml #1

name: Build WinForms App
on:
push:
branches:
- main # Change this to your main branch name
pull_request:
branches:
- main # Change this to your main branch name
jobs:
build:
runs-on: ubuntu-latest # You can change this to other supported OS if needed
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x' # Change this to the version you are using
- name: Restore NuGet packages
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore