ci: bump actions/checkout from 4 to 7 (#17) #122
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: Android build | |
| on: | |
| push: | |
| paths: | |
| - 'android/**' | |
| - 'index.html' | |
| - 'catalog.json' | |
| - 'sw.js' | |
| - 'vendor/**' | |
| - 'icons/**' | |
| - '.github/workflows/android.yml' | |
| pull_request: | |
| paths: | |
| - 'android/**' | |
| - 'index.html' | |
| - 'catalog.json' | |
| - 'sw.js' | |
| - 'vendor/**' | |
| - 'icons/**' | |
| - '.github/workflows/android.yml' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 # full history so the version task can count commits | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| - name: Set up Android SDK | |
| uses: android-actions/setup-android@v4 | |
| - name: Build debug APK | |
| working-directory: android | |
| run: ./gradlew assembleDebug --stacktrace | |
| - name: Name the debug APK | |
| id: apk | |
| run: | | |
| version="$(cat VERSION)" | |
| out="ferd-${version}-debug.apk" | |
| cp android/app/build/outputs/apk/debug/app-debug.apk "$out" | |
| echo "path=$out" >> "$GITHUB_OUTPUT" | |
| - name: Upload APK | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: ferd-debug-apk | |
| path: ${{ steps.apk.outputs.path }} | |
| if-no-files-found: error |