Component_update #446
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Funtuna | |
on: | |
workflow_dispatch: | |
pull_request: | |
repository_dispatch: | |
types: [Component_update] | |
push: | |
paths: | |
- '__Release/**' | |
- 'installer/**' | |
- '.github/workflows/repack-and-release.yml' | |
# schedule: | |
# - cron: "0 15 * * 2,5" | |
jobs: | |
Repack_and_Release: | |
runs-on: ubuntu-latest | |
container: ps2dev/ps2dev:v1.2.0 | |
steps: | |
- name: Install dependencies | |
run: | | |
apk add build-base git zip p7zip | |
- name: checkout code for release | |
uses: actions/checkout@v1 | |
- name: Update wLaunchELF_ISR | |
run: | | |
wget https://github.com/israpps/wLaunchELF_ISR/releases/download/latest/BOOT-DS34.ELF -O installer/INSTALLER_CONTENTS/BOOT/ULE.ELF | |
wget https://github.com/israpps/wLaunchELF_ISR/releases/download/latest/BOOT-DS34.ELF -O __Release/ULE_psu.ELF | |
- name: build installer | |
run: | | |
cd installer | |
make clean | |
make | |
- name: prepare Release package | |
run: | | |
SCH=${GITHUB_SHA::7} | |
cp installer/Installer.elf __Release/FunTuna-Fork_installer-$SCH.ELF | |
cp -r installer/INSTALLER_CONTENTS/BOOT/ __Release/MANUAL_INSTALL/BOOT/ | |
cp -r installer/INSTALLER_CONTENTS/APPS/ __Release/MANUAL_INSTALL/APPS/ | |
cp -r installer/INSTALLER_CONTENTS/OPL/ __Release/MANUAL_INSTALL/OPL/ | |
- name: Zip Folder | |
run: | | |
SCH=${GITHUB_SHA::7} | |
cd __Release | |
echo commit $SCH >>commit.txt | |
TARGET=FunTuna\[$SCH\].7z | |
echo TARGET is $TARGET | |
7z a -t7z -r $TARGET * | |
ls -R | |
- name: Upload artifacts | |
if: ${{ success() }} | |
uses: actions/upload-artifact@v2 | |
with: | |
name: FunTuna | |
path: | | |
__Release/*.7z | |
installer/FunTuna-Fork_Installer.ELF | |
- name: Create release | |
if: github.ref == 'refs/heads/main' | |
uses: marvinpinto/action-automatic-releases@latest | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
prerelease: false | |
automatic_release_tag: "latest" | |
title: "Latest automated Repack" | |
files: | | |
__Release/*.7z | |
installer/FunTuna-Fork_Installer.ELF |