forked from duckduckgo/Android
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (44 loc) · 1.54 KB
/
build-fdroid-apk.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Build F-Droid 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 F-Droid 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@v4
- name: Assemble F-Droid release apk
run: ./gradlew assembleFdroidRelease
- name: Create Asana task when workflow failed on push to develop
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 F-Droid apk
asana-task-description: The build F-Droid apk workflow has failed. See https://github.com/duckduckgo/Android/actions/runs/${{ github.run_id }}