Add GitHub Actions workflow for building the solution

This commit is contained in:
hexadecimal
2025-12-22 19:49:45 +00:00
parent b54aded2ea
commit 71b751c702
+34
View File
@@ -0,0 +1,34 @@
name: Build
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Setup NuGet
uses: nuget/setup-nuget@v2
- name: Restore NuGet packages
run: nuget restore BunifuLicenseGenerator.sln
- name: Build solution
run: msbuild BunifuLicenseGenerator.sln /p:Configuration=Release /p:Platform="Any CPU" /t:Rebuild
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: BunifuLicenseGenerator
path: bin/Release/