Skip to content

Update GitHub Actions and NuGet setup #19

Update GitHub Actions and NuGet setup

Update GitHub Actions and NuGet setup #19

Workflow file for this run

# 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@v4
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Setup NuGet
uses: nuget/setup-nuget@v2
- 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@v4
with:
name: 2LCS
path: 2LCS/bin/Release