-
Notifications
You must be signed in to change notification settings - Fork 21
40 lines (35 loc) · 1.25 KB
/
main.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
name: Extract and Release
on:
push:
branches:
- "data"
jobs:
build-and-release:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download file
run: curl -LJO https://sourceforge.net/projects/crdroid/files/Pong/10.x/crDroidAndroid-14.0-20240715-Pong-v10.6.zip/download
- name: Extract Payload
run: |
chmod u+x .github/scripts/android-ota-extractor
.github/scripts/android-ota-extractor *.zip
find . ! -name 'product.img' -delete
7z x product.img
echo "__________________"
ls
echo "-------app--------"
ls app
echo "-----priv-app-----"
ls priv-app
echo "__________________"
- name: Upload to Release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: priv-app/*/*.apk
name: ${{ github.run_id }}
tag_name: ${{ github.run_id }}