From 0e4f0424294110ea1ee14b8894c8cfe04d876200 Mon Sep 17 00:00:00 2001 From: Ningyuan Li Date: Thu, 31 Oct 2024 22:40:08 +0900 Subject: [PATCH] added release workflow --- .github/workflows/webOS.yml | 39 ++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/.github/workflows/webOS.yml b/.github/workflows/webOS.yml index 425c02c9c10..232f5e83c09 100644 --- a/.github/workflows/webOS.yml +++ b/.github/workflows/webOS.yml @@ -2,6 +2,10 @@ name: CI webOS on: push: + tags-ignore: + - '*' + branches: + - '*' pull_request: repository_dispatch: types: [run_build] @@ -9,6 +13,9 @@ on: permissions: contents: read +env: + PACKAGE_NAME: com.retroarch.webos + jobs: build: runs-on: ubuntu-latest @@ -25,6 +32,14 @@ jobs: fileName: "ares-package_*.deb" out-file-path: "temp" + - name: Download Manifest Generator + uses: robinraju/release-downloader@v1.9 + with: + repository: "webosbrew/dev-toolbox-cli" + latest: true + fileName: "webosbrew-toolbox-gen-manifest_*.deb" + out-file-path: "temp" + - name: Update packages run: sudo apt-get -yq update @@ -47,6 +62,28 @@ jobs: ./arm-webos-linux-gnueabi_sdk-buildroot/relocate-sdk.sh - name: Compile RA + shell: bash run: | . /tmp/arm-webos-linux-gnueabi_sdk-buildroot/environment-setup - make -f Makefile.webos ADD_SDL2_LIB=1 -j$(getconf _NPROCESSORS_ONLN) + make -f Makefile.webos ipk PACKAGE_NAME=${PACKAGE_NAME} ADD_SDL2_LIB=1 -j$(getconf _NPROCESSORS_ONLN) + + - name: Generate Manifest + shell: bash + run: | + . version.all + webosbrew-gen-manifest -o webos/${PACKAGE_NAME}.manifest.json \ + -p webos/${PACKAGE_NAME}_${RARCH_VERSION}_arm.ipk \ + -i https://github.com/webosbrew/RetroArch/raw/webos/webos/icon160.png \ + -l https://github.com/webosbrew/RetroArch + + - 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: webos/*.ipk,webos/*.manifest.json