mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-12-20 12:52:24 -05:00
add automatic release uploads using CI (#37)
This commit is contained in:
parent
f51b1867ee
commit
65f4878c5c
1 changed files with 36 additions and 0 deletions
36
.github/workflows/build.yml
vendored
36
.github/workflows/build.yml
vendored
|
@ -66,3 +66,39 @@ jobs:
|
||||||
-DISLE_WERROR=${{ !!matrix.toolchain.werror }} \
|
-DISLE_WERROR=${{ !!matrix.toolchain.werror }} \
|
||||||
-Werror=dev
|
-Werror=dev
|
||||||
cmake --build build -- -k0
|
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
|
||||||
|
|
Loading…
Reference in a new issue