From 83798c4bb78a440cab33b1ecb1347f22e0d4b9c9 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sun, 4 Feb 2024 15:24:44 -0700 Subject: [PATCH] CI: restore github releases creation --- .github/workflows/continuous-building.yml | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/continuous-building.yml b/.github/workflows/continuous-building.yml index 6bbd75fd..e5be2fd0 100644 --- a/.github/workflows/continuous-building.yml +++ b/.github/workflows/continuous-building.yml @@ -48,6 +48,15 @@ jobs: path: ericw-tools-linux/ name: ericw-tools-${{ github.sha }}-linux if-no-files-found: error + - name: 'Linux: Create GitHub Release and upload build' + uses: softprops/action-gh-release@v1 + if: ${{ startsWith(matrix.os, 'ubuntu-') && matrix.use-asan == 'NO' && startsWith(github.ref, 'refs/tags/') }} + with: + draft: true + files: | + build-linux/*-Linux.zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: 'macOS: Install Qt5' if: ${{ startsWith(matrix.os, 'macos-') }} @@ -69,6 +78,15 @@ jobs: path: ericw-tools-macos/ name: ericw-tools-${{ github.sha }}-macos if-no-files-found: error + - name: 'macOS: Create GitHub Release and upload build' + uses: softprops/action-gh-release@v1 + if: ${{ startsWith(matrix.os, 'macos-') && matrix.use-asan == 'NO' && startsWith(github.ref, 'refs/tags/') }} + with: + draft: true + files: | + build-osx/*-Darwin.zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: 'Windows: Setup MSVC environment' if: startsWith(matrix.os, 'windows-') @@ -94,3 +112,12 @@ jobs: path: ericw-tools-windows/ name: ericw-tools-${{ github.sha }}-windows if-no-files-found: error + - name: 'Windows: Create GitHub Release and upload build' + uses: softprops/action-gh-release@v1 + if: ${{ startsWith(matrix.os, 'windows-') && matrix.use-asan == 'NO' && startsWith(github.ref, 'refs/tags/') }} + with: + draft: true + files: | + build-windows\*-win64.zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}