Created
April 27, 2022 18:50
-
-
Save mttaggart/b8b6b2eb45b3846bb0a18a0deaa9f21b to your computer and use it in GitHub Desktop.
Revisions
-
mttaggart created this gist
Apr 27, 2022 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,33 @@ # This is a template GitHub Action YAML file for building .NET projects. # Handy for forking .NET assembly projects and building easily without VS. # Make sure to replace "MyAssembly" with the name of the project! name: .NET on: push: branches: [ main ] pull_request: branches: [ main ] jobs: build: runs-on: windows-latest steps: - uses: actions/checkout@v3 - name: Setup .NET uses: actions/setup-dotnet@v2 with: dotnet-version: 6.0.* - name: Restore dependencies run: dotnet restore - name: Build run: dotnet build --no-restore --configuration Release - name: Test run: dotnet test --no-build --verbosity normal - name: Upload Artifact uses: actions/upload-artifact@v2 with: name: MyAssembly.exe path: D:\a\MyAssembly\MyAssembly\MyAssembly\bin\Release\MyAssembly.exe