-
-
Notifications
You must be signed in to change notification settings - Fork 7
76 lines (67 loc) · 2.15 KB
/
repack-and-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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