Migrate .NET 8.0 #11
Workflow file for this run
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
# Build the C# windows form application when receiving a pull request | |
name: Build for pull request | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v1.1 | |
- name: Setup NuGet | |
uses: nuget/setup-nuget@v1 | |
- name: Restore NuGet packages | |
run: nuget restore 2LCS/2LCS.csproj | |
- name: Build | |
run: msbuild 2LCS/2LCS.csproj /p:VersionSuffix=pr /p:Configuration=Release /p:Version=0.0.0.${{ github.event.pull_request.number }} /p:InformationalVersion=0.0.0.${{ github.event.pull_request.number }}-pr | |
- name: Upload 2LCS.zip | |
uses: actions/upload-artifact@v3 | |
# uses: softprops/action-gh-release@v1 | |
with: | |
name: 2LCS | |
path: 2LCS/bin/Release |