From 8c3e336bf899daae326815c299673f34e847f2ee Mon Sep 17 00:00:00 2001 From: hexadecimal <138823941+t0int1337@users.noreply.github.com> Date: Mon, 22 Dec 2025 19:51:49 +0000 Subject: [PATCH] Add GitHub Actions workflow for automated release process --- .github/workflows/release.yml | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..0b4de34 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,40 @@ +name: Release + +on: + push: + tags: + - 'v*' + +jobs: + release: + runs-on: windows-latest + + permissions: + contents: write + + 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: Zip binaries + run: Compress-Archive -Path bin/Release/* -DestinationPath BunifuLicenseGenerator.zip + + - name: Create Release + uses: softprops/action-gh-release@v1 + with: + files: BunifuLicenseGenerator.zip + generate_release_notes: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}