From 71b751c702736dd91eabdad29f4fdae020aeb854 Mon Sep 17 00:00:00 2001 From: hexadecimal <138823941+t0int1337@users.noreply.github.com> Date: Mon, 22 Dec 2025 19:49:45 +0000 Subject: [PATCH] Add GitHub Actions workflow for building the solution --- .github/workflows/build.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..68144f1 --- /dev/null +++ b/.github/workflows/build.yml @@ -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/