Create dotnet-desktop.yml #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |