From 65f4878c5ca0b019a0922bc1df6a630dc338408d Mon Sep 17 00:00:00 2001 From: Ramen2X Date: Tue, 17 Dec 2024 17:53:23 -0500 Subject: [PATCH] add automatic release uploads using CI (#37) --- .github/workflows/build.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a56eca6c..27b95d69 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -66,3 +66,39 @@ jobs: -DISLE_WERROR=${{ !!matrix.toolchain.werror }} \ -Werror=dev cmake --build build -- -k0 + + # Needs to be reworked when cross-platform building is achieved + - name: Upload Build Artifacts (MSVC (32-bit)) + if: matrix.toolchain.name == 'MSVC (32-bit)' + uses: actions/upload-artifact@master + with: + name: msvc32-artifacts + path: | + build/ISLE.EXE + build/LEGO1.DLL + build/SDL3.dll + + upload: + name: 'Upload artifacts' + needs: build-current-toolchain + runs-on: ubuntu-latest + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'isledecomp/isle-portable' }} + steps: + - uses: actions/checkout@v4 + with: + repository: 'probonopd/uploadtool' + + - uses: actions/download-artifact@master + with: + name: msvc32-artifacts + path: build + + - name: Upload Continuous Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + UPLOAD_KEY: ${{ secrets.UPLOAD_KEY }} + run: | + ./upload.sh \ + build/ISLE.EXE \ + build/LEGO1.DLL \ + build/SDL3.dll