feat: Integrate new layout to editor #44
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 and upload APK | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Write key | |
run: | | |
if [ ! -z "${{ secrets.KEYSTORE }}" ]; then | |
{ | |
echo storePassword='${{ secrets.KEYSTORE_PASSWORD }}' | |
echo keyPassword='${{ secrets.KEY_PASSWORD }}' | |
echo keyAlias='${{ secrets.KEY_ALIAS }}' | |
echo storeFile='../keystore.jks' | |
} > keystore.properties | |
echo '${{ secrets.KEYSTORE }}' | base64 -d > keystore.jks | |
fi | |
- name: Build with Gradle | |
run: ./gradlew app:assembleDebug | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Debug APK | |
path: app/build/outputs/apk/debug/XtMapper-universal*.apk | |
- name: Build with Gradle | |
run: ./gradlew app:assembleRelease | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Release APK | |
path: app/build/outputs/apk/release/XtMapper-universal*.apk | |