Add FDroid build check #3
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: Build FDroid apk | |
on: | |
push: | |
branches: | |
- develop | |
paths-ignore: | |
- '**.md' | |
- '.github/**' | |
pull_request: | |
# paths: | |
# - 'subscriptions/subscriptions-api/**' | |
# - 'subscriptions/subscriptions-dummy-impl/**' | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build_fdroid_apk: | |
name: Build FDroid apk | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Assemble FDroid release apk | |
run: ./gradlew assembleFdroidRelease | |
- name: Create Asana task when workflow failed | |
if: ${{ failure() && github.ref == 'refs/heads/develop' && github.event_name == 'push' }} | |
uses: honeycombio/gha-create-asana-task@main | |
with: | |
asana-secret: ${{ secrets.GH_ASANA_SECRET }} | |
asana-workspace-id: ${{ secrets.GH_ASANA_WORKSPACE_ID }} | |
asana-project-id: ${{ secrets.GH_ASANA_AOR_PROJECT_ID }} | |
asana-section-id: ${{ secrets.GH_ASANA_INCOMING_ID }} | |
asana-task-name: GH Workflow Failure - Build FDroid apk | |
asana-task-description: The build FDroid apk workflow has failed. See https://github.com/duckduckgo/Android/actions/runs/${{ github.run_id }} |