-
Notifications
You must be signed in to change notification settings - Fork 140
54 lines (45 loc) · 1.33 KB
/
Scene5.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
name: Android CI(Scene5)
on:
push:
branches: [ scene5 ]
pull_request:
branches: [ scene5 ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: scene5
- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r23b
add-to-path: false
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
# run: ./gradlew build
run: ./gradlew assembleRelease
- name: Upload GitHub Actions artifact of vcpkg build
uses: actions/upload-artifact@v2
with:
name: scene-dev
path: ${{ github.workspace }}/app/build/outputs/apk/release/app-release.apk
- name: Deploy
env:
GITHUB_REPO: github.com/helloklf/vtools-dev-apks.git
run: |
cd ${{ github.workspace }}/app/build/outputs/apk/release/
git init
git config user.name "helloklf"
git config user.email "[email protected]"
git add .
git commit -m "GitHub Actions Auto Builder at $(date +'%Y-%m-%d %H:%M:%S')"
git push --force --quiet "https://${{ secrets.ACCESS_TOKEN }}@$GITHUB_REPO" master:master