File tree Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Original file line number Diff line number Diff line change 11name : Build (webOS)
22
3- on : [push, pull_request]
3+ on :
4+ push :
5+ pull_request :
6+ release :
7+ types : [ published ]
48
59jobs :
610 Build :
3034 -DCMAKE_BUILD_TYPE=Release -DWEBOS=ON
3135
3236 - name : Build (CMake)
33- run : cmake --build build/ --config Release --verbose --parallel
37+ run : cmake --build build/ --config Release --verbose --parallel
38+
39+ - name : Package (Release Only)
40+ if : github.event_name == 'release'
41+ shell : bash
42+ run : |
43+ cmake --install build/ --prefix dist
44+ cd dist
45+ tar -czf ../SDL2-$(./bin/sdl2-config --version)-webos.tar.gz .
46+
47+ - name : Release
48+ if : github.event_name == 'release'
49+ uses : ncipollo/release-action@v1
50+ with :
51+ token : ${{ secrets.GITHUB_TOKEN }}
52+ tag : ${{ github.event.release.tag_name }}
53+ allowUpdates : true
54+ omitNameDuringUpdate : true
55+ omitBody : true
56+ omitPrereleaseDuringUpdate : true
57+ artifacts : SDL2-*-webos.tar.gz
You can’t perform that action at this time.
0 commit comments