Skip to content

Commit

Permalink
prebuilt release flow
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Feb 24, 2024
1 parent ff4e0fa commit d95022a
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/webos.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Build (webOS)

on: [push, pull_request]
on:
push:
pull_request:
release:
types: [ published ]

jobs:
Build:
Expand Down Expand Up @@ -30,4 +34,24 @@ jobs:
-DCMAKE_BUILD_TYPE=Release -DWEBOS=ON
- name: Build (CMake)
run: cmake --build build/ --config Release --verbose --parallel
run: cmake --build build/ --config Release --verbose --parallel

- name: Package (Release Only)
if: github.event_name == 'release'
shell: bash
run: |
cmake --install build/ --prefix dist
cd dist
tar -czf ../SDL2-$(./bin/sdl2-config --version)-webos.tar.gz .
- name: Release
if: github.event_name == 'release'
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.event.release.tag_name }}
allowUpdates: true
omitNameDuringUpdate: true
omitBody: true
omitPrereleaseDuringUpdate: true
artifacts: SDL2-*-webos.tar.gz

0 comments on commit d95022a

Please sign in to comment.