Skip to content

Commit c0adbbb

Browse files
author
Fiqry choerudin
committed
update : add workflows
1 parent f3d21f8 commit c0adbbb

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/android.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Login App
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/cache@v1
16+
with:
17+
path: ~/.gradle/caches
18+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
19+
restore-keys: |
20+
${{ runner.os }}-gradle-
21+
- uses: actions/checkout@v2
22+
- name: set up JDK 1.8
23+
uses: actions/setup-java@v1
24+
with:
25+
java-version: 1.8
26+
- name: Install NDK
27+
run: echo "y" | sudo /usr/local/lib/android/sdk/tools/bin/sdkmanager --install "ndk;21.0.6113669" --sdk_root=${ANDROID_SDK_ROOT}
28+
- name: Change wrapper permissions
29+
run: chmod +x ./gradlew
30+
- name: Build with Gradle
31+
run: ./gradlew build
32+
- name: Get short SHA
33+
id: slug
34+
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
35+
- name: Releasing using Hub
36+
uses: konteru/action-release-debugapk@master
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.TOKEN }}
39+
APP_FOLDER: app
40+
RELEASE_TITLE: Animize Release v${{ steps.today.outputs.date }}-${{ steps.slug.outputs.sha8 }}
41+
OUTPUT_FOLDER: build/outputs/apk/ima/debug

0 commit comments

Comments
 (0)