|
@@ -1,29 +1,28 @@
|
|
-name: Build Apk
|
|
|
|
|
|
+name: Build & Publish Debug APK
|
|
|
|
|
|
on:
|
|
on:
|
|
- push:
|
|
|
|
- branches: [ master ]
|
|
|
|
- pull_request:
|
|
|
|
- branches: [ master ]
|
|
|
|
-
|
|
|
|
|
|
+ push:
|
|
|
|
+ branches:
|
|
|
|
+ - master
|
|
|
|
+
|
|
jobs:
|
|
jobs:
|
|
-
|
|
|
|
-
|
|
|
|
build:
|
|
build:
|
|
- name: Generate APK
|
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
-
|
|
|
|
steps:
|
|
steps:
|
|
- - uses: actions/checkout@v2
|
|
|
|
|
|
+ - uses: actions/checkout@v1
|
|
- name: set up JDK 1.8
|
|
- name: set up JDK 1.8
|
|
uses: actions/setup-java@v1
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
with:
|
|
java-version: 1.8
|
|
java-version: 1.8
|
|
|
|
+ - name: Make Gradle executable
|
|
|
|
+ run: chmod +x ./gradlew
|
|
|
|
+ - name: Build with Gradle
|
|
|
|
+ run: ./gradlew build
|
|
- name: Build Debug APK
|
|
- name: Build Debug APK
|
|
- run: bash ./gradlew :app:assembleDebug
|
|
|
|
-
|
|
|
|
- - name: Upload APK
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
- with:
|
|
|
|
- name: App
|
|
|
|
- path: ${{ github.workspace }}/app/build/outputs/apk/debug/app-debug.apk
|
|
|
|
|
|
+ run: ./gradlew assembleDebug
|
|
|
|
+ - name: Releasing using Hub
|
|
|
|
+ uses: ShaunLWM/action-release-debugapk@master
|
|
|
|
+ env:
|
|
|
|
+ GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
|
|
|
+ APP_FOLDER: app
|
|
|
|
+ RELEASE_TITLE: New Build
|