-
Notifications
You must be signed in to change notification settings - Fork 928
50 lines (41 loc) · 1.65 KB
/
release_production.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
name: Release - Upload Bundle to Play Store
on:
workflow_dispatch:
env:
ASANA_PAT: ${{ secrets.GH_ASANA_SECRET }}
GOOGLE_APPLICATION_CREDENTIALS: '#{ENV["HOME"]}/jenkins_static/com.duckduckgo.mobile.android/ddg-upload-firebase.json'
jobs:
create-tag:
name: Generate and upload nightly bundle to Play Store Internal track
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.GT_DAXMOBILE }}
- name: Set Git permissions
uses: oleksiyrudenko/gha-git-credentials@v2-latest
with:
token: '${{ secrets.GT_DAXMOBILE }}'
- name: Get Previous tag
id: fetch_tag
uses: oprypin/find-latest-tag@v1
with:
repository: duckduckgo/android
prefix: '5.'
- name: Generate nightly version name
id: generate_version_name
run: |
output=$(./gradlew getBuildVersionName -PversionNameSuffix=-nightly -PlatestTag=${{ steps.fetch_tag.outputs.tag }} --quiet | head -n 1)
echo "::set-output name=version::$output"
- name: Tag Nightly release
id: tag_nightly_release
run: |
git tag -a ${{ steps.generate_version_name.outputs.version }} -m "Create tag ${{ steps.generate_version_name.outputs.version }} for nightly release."
git push origin ${{ steps.generate_version_name.outputs.version }}
- name: Upload app bundle as artifact
uses: actions/upload-artifact@v4
with:
name: duckduckgo-${{ steps.generate_version_name.outputs.version }}.apk
path: duckduckgo.apk