Skip to content

fix null check

fix null check #22

Workflow file for this run

name: Check
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Debug with Gradle
run: ./gradlew assembleDebug --stacktrace
- name: Build Release with Gradle
run: ./gradlew assembleRelease --stacktrace
- name: Sign APK
uses: r0adkll/sign-android-release@v1
id: sign_app
with:
releaseDirectory: archive/app/
signingKeyBase64: ${{ secrets.KEYSTORE_JKS_BASE64 }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
alias: ${{ secrets.SIGNING_KEY_ALIAS }}
keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
- name: Rename Signed APKs
run: |
for FILE in archive/app/*unsigned-signed.apk
do
mv "${FILE}" "${FILE/unsigned-signed/signed}"
done
- name: Upload
uses: actions/[email protected]
with:
name: Build Artifacts
path: |
archive/app/*-signed.apk
archive/app/*-mapping.txt
- name: Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: "latest"
prerelease: true
files: |
archive/app/*-signed.apk
archive/app/*-mapping.txt