forked from Aliucord/Aliucord
-
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (42 loc) · 1.13 KB
/
build-injector.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
name: Build Injector
on:
push:
branches:
- main
paths:
- .github/workflows/build-injector.yml
- Injector/**
jobs:
build-injector:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
with:
path: src
- name: Checkout builds
uses: actions/checkout@master
with:
ref: builds
path: builds
- name: Setup JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Setup Android SDK
uses: android-actions/setup-android@3404b45d4c43e74e30dcad1a47fb89a0573f5a7e # v2.0.6
- name: Build Injector
run: |
cd $GITHUB_WORKSPACE/src
chmod +x gradlew
./gradlew :Injector:make
cp Injector/build/Injector.dex $GITHUB_WORKSPACE/builds
- name: Push builds
run: |
cd $GITHUB_WORKSPACE/builds
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git pull
git add .
git commit -m "Build $GITHUB_SHA"
git push