From ef459b2b51630da2a370887f2f4d32d4adcd8d2a Mon Sep 17 00:00:00 2001 From: Sakimotor Date: Tue, 4 Mar 2025 21:36:45 +0100 Subject: [PATCH] Update cmake-multi-platform.yml --- .github/workflows/cmake-multi-platform.yml | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 49651a0..68bd166 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -86,3 +86,37 @@ jobs: with: name: XenonBinaries-${{ matrix.os }} path: artifacts/* + release: + needs: build + runs-on: ubuntu-latest + steps: + - name: Download Linux Build Artifacts + uses: actions/download-artifact@v4 + with: + name: XenonBinaries-Linux + path: artifacts + + - name: Download Windows Build Artifacts + uses: actions/download-artifact@v4 + with: + name: XenonBinaries-Windows + path: artifacts + + - name: Create GitHub Release + id: create_release + uses: softprops/action-gh-release@v2 + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') + with: + tag_name: ${{ github.ref_name }} + name: Release ${{ github.ref_name }} + body: | + **Automated release for** ${{ github.ref_name }} + + - Includes builds for **Linux** and **Windows**. + draft: false + prerelease: false + files: | + artifacts/XenonBinaries-Linux.tar.gz + artifacts/XenonBinaries-Windows.zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}