12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- name: Android CI
- on:
- push:
- branches: [ master ]
- pull_request:
- branches: [ master ]
- jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - name: set up JDK 1.8
- uses: actions/setup-java@v2
- with:
- java-version: 1.8
- distribution: 'adopt'
- - name: Install NDK
- run: echo "y" | sudo /usr/local/lib/android/sdk/tools/bin/sdkmanager --install "ndk;21.0.6113669" --sdk_root=${ANDROID_SDK_ROOT}
- - name: cache
- id: cache
- uses: actions/cache@v1
- with:
- path: ~/.gradle/caches
- key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
- restore-keys: |
- ${{ runner.os }}-gradle-
- - name: Build Debug APK
- run: |
- chmod +x gradlew
- ./gradlew assembleDebug
- - name: artifact
- uses: actions/upload-artifact@v1
- with:
- name: artifact
- path: app/build/outputs
- - name: Releasing using Hub
- uses: ShaunLWM/action-release-debugapk@master
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_RElEASE_TOKEN }}
- APP_FOLDER: app
- RELEASE_TITLE: Version
|