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/