-
Notifications
You must be signed in to change notification settings - Fork 34
55 lines (44 loc) · 1.25 KB
/
build.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 on push
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12
uses: actions/setup-node@v1
with:
node-version: 12
- name: Build project
working-directory: ./
run: |
npm install
npm run build
- name: Upload js project
uses: actions/upload-artifact@v1
with:
name: js-dist
path: dist/main/
- name: clone Auto.js
working-directory: ./dist
run: |
git clone https://github.com/demoshang/Auto.js.git
ls -la ./
- name: Auto.js replace inrt
working-directory: ./dist
run: |
npx @s4p/autojs-replace-inrt "./Auto.js" "./main"
cd "./Auto.js"
git status
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Gradle
working-directory: ./dist/Auto.js
run: chmod 777 ./gradlew && ./gradlew :inrt:assembleDebug && find inrt/build/outputs
- name: Upload apk
uses: actions/upload-artifact@v1
with:
name: debug-apk
path: dist/Auto.js/inrt/build/outputs/apk/debug/