Skip to content

Release - Update Release Notes in Play Store and Github #297

Release - Update Release Notes in Play Store and Github

Release - Update Release Notes in Play Store and Github #297

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)
echo "version=$output" >> $GITHUB_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