Allow to take a profile picture using the camera. #20
Workflow file for this run
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: Android APK Build | |
on: | |
push: | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+ | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
# Write permission to create a release | |
permissions: | |
contents: write | |
steps: | |
# First step : Checkout the repository on the runner | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of Sonar analysis (if we use Sonar Later) | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version: "17" | |
# Caching is a very useful part of a CI, as a workflow is executed in a clean environment every time, | |
# this means that one would need to re-download and re-process gradle files for every run. Which is very time consuming. | |
# | |
# To avoid that, we cache the the gradle folder to reuse it later. | |
- name: Gradle cache | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Grant execute permission for gradlew | |
run: | | |
chmod +x ./gradlew | |
- name: Build APK | |
run: | | |
./gradlew build | |
- name: Signing Report | |
run: | | |
./gradlew signingReport | |
# Upload the APK as an artifact | |
- name: Upload APK | |
uses: actions/upload-artifact@v4 | |
with: | |
name: echo-app.apk | |
path: app/build/outputs/apk/debug/app-debug.apk | |
if-no-files-found: error | |
# Create a release | |
- name: Create Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: app/build/outputs/apk/debug/app-debug.apk | |
token: ${{ secrets.GITHUB_TOKEN }} |