factory reset policy in system manager #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build APK | |
on: | |
push: | |
paths-ignore: | |
- '**.md' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: '21' | |
- name: Get short commit SHA | |
run: echo "SHORT_SHA=${GITHUB_SHA::7}" >> $GITHUB_ENV | |
- name: Build APK (testkey) | |
run: ./gradlew build | |
- name: Upload Debug APK (testkey) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: OwnDroid-CI-${{ env.SHORT_SHA }}-debug-testkey.apk | |
path: app/build/outputs/apk/debug/app-debug.apk | |
- name: Upload Release APK (testkey) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: OwnDroid-CI-${{ env.SHORT_SHA }}-release-testkey.apk | |
path: app/build/outputs/apk/release/app-release.apk | |
- name: Export key | |
env: | |
KEY_BASE64: ${{ secrets.KEY_BASE64 }} | |
run: echo "$KEY_BASE64" | base64 --decode - > app/signature.jks | |
- name: Build APK | |
env: | |
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} | |
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | |
KEY_ALIAS: ${{ secrets.KEY_ALIAS }} | |
run: ./gradlew build | |
- name: Upload Debug APK | |
uses: actions/upload-artifact@v4 | |
with: | |
name: OwnDroid-CI-${{ env.SHORT_SHA }}-debug-signed.apk | |
path: app/build/outputs/apk/debug/app-debug.apk | |
- name: Upload Release APK | |
uses: actions/upload-artifact@v4 | |
with: | |
name: OwnDroid-CI-${{ env.SHORT_SHA }}-release-signed.apk | |
path: app/build/outputs/apk/release/app-release.apk |