Skip to content

Make Test Package

Make Test Package #5

name: Make Test Package
on:
workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: git clone -b ${GITHUB_REF_NAME} --recurse-submodules https://github.com/siavash79/PixelXpert.git .
name: Grab source code
- name: Setup JDK 18
uses: actions/setup-java@v3
with:
java-version: '18'
distribution: 'temurin'
cache: gradle
- name: Grant permission shell scripts
run: chmod +x .github/*.sh
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- uses: r0adkll/sign-android-release@v1
name: Sign app APK
id: sign_app
with:
releaseDirectory: app/build/outputs/apk/debug
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: "33.0.0"
- uses: actions/upload-artifact@v2
name: Upload APK file
with:
name: PixelXpert.apk
path: ${{steps.sign_app.outputs.signedReleaseFile}}
- name: Run the zip script
run: .github/make_debug_zip.sh
- name: Upload Zip
uses: actions/upload-artifact@v2
with:
name: PixelXpert.zip
path: output