-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 994 Bytes
/
blank.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
name: Build and Release APK
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Ensure Gradle Wrapper has execute permission
run: chmod +x gradlew
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
- name: Install Android SDK
run: echo y | sdkmanager "platforms;android-30" "build-tools;30.0.3"
- name: Build with Gradle
run: ./gradlew assembleRelease
- name: Upload Release APK
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.repository.releases_url }}
asset_path: app/build/outputs/apk/release/app-release.apk
asset_name: app-release.apk
asset_content_type: application/vnd.android.package-archive
env:
GITHUB_TOKEN: ${{ secrets.apk }}