fix: restore missing getValue import in NoteCard #55
This file contains hidden or 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 Android Release APK | |
| on: | |
| push: | |
| branches: [ "main", "master" ] | |
| pull_request: | |
| branches: [ "main", "master" ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build Release APK | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| with: | |
| gradle-version: '9.3.1' | |
| - name: Ensure signing keystore exists | |
| run: | | |
| if [ ! -f debug.keystore ]; then | |
| keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "CN=Android Debug,O=Android,C=US" | |
| fi | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x ./gradlew || true | |
| - name: Build Release APK with Gradle | |
| env: | |
| JAVA_TOOL_OPTIONS: "-Djava.awt.headless=true" | |
| GRADLE_OPTS: "-Djava.awt.headless=true -Dorg.gradle.jvmargs='-Xmx4g -Dfile.encoding=UTF-8 -Djava.awt.headless=true'" | |
| run: ./gradlew assembleRelease --stacktrace --no-daemon -Djava.awt.headless=true | |
| - name: Verify and list APK outputs | |
| run: | | |
| echo "=== Searching for generated APKs ===" | |
| find app/build/outputs -type f -name "*.apk" || true | |
| ls -la app/build/outputs/apk/release/ || true | |
| - name: Upload Release APK Artifact | |
| uses: actions/upload-artifact@v4 | |
| if: success() | |
| with: | |
| name: AstralNotes-Release-APK | |
| path: app/build/outputs/apk/**/*.apk | |
| if-no-files-found: error | |
| retention-days: 30 |