From e68cb6ddd09a459ec7653879da09fb43d197863d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=88=9A=28noham=29=C2=B2?= <100566912+NohamR@users.noreply.github.com> Date: Sun, 10 May 2026 11:41:25 +0200 Subject: [PATCH] Create build-and-release.yml --- .github/workflows/build-and-release.yml | 47 +++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/build-and-release.yml diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml new file mode 100644 index 0000000..698beb6 --- /dev/null +++ b/.github/workflows/build-and-release.yml @@ -0,0 +1,47 @@ +name: Build and Release + +on: + push: + tags: + - 'v*' # Trigger on version tags + workflow_dispatch: # Allow manual triggering to create a draft release + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Add MSBuild to PATH + uses: microsoft/setup-msbuild@v2 + + - name: Build the proxy DLL + run: msbuild paho-mqtt3as-proxy.slnx /p:Configuration=Release /p:Platform=x64 + + - name: Upload Build Artifacts + uses: actions/upload-artifact@v4 + with: + name: paho-mqtt3as-dll + # By default, x64 MSBuild outputs go to x64\Release\ for the solution. + path: x64/Release/paho-mqtt3as.dll + + release: + needs: build + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Download Artifacts + uses: actions/download-artifact@v4 + with: + name: paho-mqtt3as-dll + path: ./release-artifacts + + - name: Create Draft Release + uses: softprops/action-gh-release@v2 + with: + draft: true + files: ./release-artifacts/paho-mqtt3as.dll + generate_release_notes: true