forked from UltraHQ/A72-Hidden-Mods
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (48 loc) · 1.43 KB
/
Build_Mod.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
name: Build Mod
on:
workflow_dispatch:
push:
branches:
- A14_1
jobs:
build:
if: github.event.repository.owner.id == github.event.sender.id
runs-on: ubuntu-20.04
permissions:
contents: write
actions: write
steps:
# You might want to Checkout your repo first, but not mandatory
- name: Check Out
uses: actions/checkout@v4
- name: Create A14_1 Zip Archive
run: |
git clone https://github.com/Aflaungos/M23-Hidden-Mods -b A14_1 A14_1HM
cd $GITHUB_WORKSPACE/A14_1HM
zip -r M23-Hidden_Mods_A14_1.zip . -x ".git*" -x ".github*" -x "MagiskMod.jpg" -x "LICENSE" -x "README.md"
- name: Upload to Release
uses: softprops/action-gh-release@v1
with:
files: |
A14_1HM/M23-Hidden_Mods_A14_1.zip
name: M23 Hidden Mods
tag_name: ${{ github.run_id }}
body: |
Device: Samsung Galaxy M23/F23 5G
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 0
keep_minimum_runs: 0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Delete older releases
uses: dev-drprasad/[email protected]
with:
keep_latest: 1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}