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 1
1
name : Build (webOS)
2
2
3
- on : [push, pull_request]
3
+ on :
4
+ push :
5
+ pull_request :
6
+ release :
7
+ types : [ published ]
4
8
5
9
jobs :
6
10
Build :
30
34
-DCMAKE_BUILD_TYPE=Release -DWEBOS=ON
31
35
32
36
- 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