1
+ name : Production Release to Play Store and Github
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ app-version :
7
+ description : ' Ref to build APK from (branch, tag, commit)'
8
+ required : true
9
+
10
+ env :
11
+ ASANA_PAT : ${{ secrets.ASANA_ACCESS_TOKEN }}
12
+ GH_TOKEN : ${{ secrets.GT_DAXMOBILE }}
13
+ GOOGLE_APPLICATION_CREDENTIALS : ' #{ENV["HOME"]}/jenkins_static/com.duckduckgo.mobile.android/ddg-upload-firebase.json'
14
+
15
+ jobs :
16
+ trigger-asana-task-creation :
17
+ name : Trigger Create Asana Task
18
+ uses : ./.github/workflows/release_create_task.yml
19
+ with :
20
+ input : ${{ github.event.inputs.app-version }}
21
+
22
+ trigger-tag-creation :
23
+ name : Trigger Create Git Tag
24
+ uses : ./.github/workflows/release_create_tag.yml
25
+ needs : trigger-asana-task-creation
26
+ with :
27
+ ref : ${{ github.event.inputs.app-version }}
28
+
29
+ trigger-release-tests :
30
+ name : Trigger Run Release Tests
31
+ uses : ./.github/workflows/release_tests.yml
32
+ needs : trigger-tag-creation
33
+ with :
34
+ app-version : ${{ github.event.inputs.app-version }}
35
+ test-tag : ' releaseTest'
36
+
37
+ trigger-upload-play-store-github :
38
+ name : Trigger Upload to Play Store and Github
39
+ uses : ./.github/workflows/release_upload_play_store.yml
40
+ needs : trigger-release-tests
41
+ with :
42
+ ref : ${{ github.event.inputs.app-version }}
43
+
44
+ trigger-upload-internal :
45
+ name : Trigger Internal Release
46
+ uses : ./.github/workflows/release_upload_internal.yml
47
+ needs : trigger-upload-play-store-github
48
+
49
+ trigger-asana-error-task-creation :
50
+ name : Create Asana task when workflow failed
51
+ if : ${{ failure() }}
52
+ uses :
duckduckgo/[email protected]
53
+ with :
54
+ asana-project : ${{ vars.GH_ANDROID_APP_PROJECT_ID }}
55
+ asana-section : ${{ vars.GH_ANDROID_APP_INCOMING_SECTION_ID }}
56
+ asana-task-name : GH Workflow Failure - Release Production
57
+ asana-task-description : The Release Production workflow has failed. See https://github.com/duckduckgo/Android/actions/runs/${{ github.run_id }}
58
+ action : ' create-asana-task'
59
+ secrets :
60
+ asana-pat : ${{ secrets.ASANA_ACCESS_TOKEN }}
0 commit comments