Skip to content

Commit 5b0fb96

Browse files
mariotakucscd98
authored andcommitted
added release workflow
1 parent f260d3e commit 5b0fb96

1 file changed

Lines changed: 40 additions & 5 deletions

File tree

.github/workflows/webOS.yml

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@ name: CI webOS
22

33
on:
44
push:
5+
tags-ignore:
6+
- '*'
7+
branches:
8+
- '*'
59
pull_request:
10+
release:
11+
types: [ published ]
612
repository_dispatch:
7-
types: [run_build]
8-
9-
permissions:
10-
contents: read
13+
types: [ run_build ]
1114

1215
env:
16+
PACKAGE_NAME: com.retroarch.webos
1317
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
1418

1519
jobs:
@@ -28,6 +32,14 @@ jobs:
2832
fileName: "ares-package_*.deb"
2933
out-file-path: "temp"
3034

35+
- name: Download Manifest Generator
36+
uses: robinraju/[email protected]
37+
with:
38+
repository: "webosbrew/dev-toolbox-cli"
39+
latest: true
40+
fileName: "webosbrew-toolbox-gen-manifest_*.deb"
41+
out-file-path: "temp"
42+
3143
- name: Update packages
3244
run: sudo apt-get -yq update
3345

@@ -50,6 +62,29 @@ jobs:
5062
./arm-webos-linux-gnueabi_sdk-buildroot/relocate-sdk.sh
5163
5264
- name: Compile RA
65+
shell: bash
5366
run: |
5467
. /tmp/arm-webos-linux-gnueabi_sdk-buildroot/environment-setup
55-
make -f Makefile.webos ADD_SDL2_LIB=1 -j$(getconf _NPROCESSORS_ONLN) info all
68+
make -f Makefile.webos ipk PACKAGE_NAME=${PACKAGE_NAME} ADD_SDL2_LIB=1 -j$(getconf _NPROCESSORS_ONLN)
69+
70+
- name: Generate Manifest
71+
shell: bash
72+
run: |
73+
. version.all
74+
webosbrew-gen-manifest -o webos/${PACKAGE_NAME}.manifest.json \
75+
-p webos/${PACKAGE_NAME}_${RARCH_VERSION}_arm.ipk \
76+
-i https://github.com/webosbrew/RetroArch/raw/webos/webos/icon160.png \
77+
-l https://github.com/webosbrew/RetroArch
78+
79+
- name: Release
80+
if: github.event_name == 'release'
81+
uses: ncipollo/release-action@v1
82+
with:
83+
token: ${{ secrets.GITHUB_TOKEN }}
84+
tag: ${{ github.event.release.tag_name }}
85+
allowUpdates: true
86+
omitNameDuringUpdate: true
87+
omitBody: true
88+
omitPrereleaseDuringUpdate: true
89+
artifacts: webos/*.ipk,webos/*.manifest.json
90+
>>>>>>> 0c0fb0eaf4 (added release workflow)

0 commit comments

Comments
 (0)