Skip to content

.github/workflows/release_production.yml #236

.github/workflows/release_production.yml

.github/workflows/release_production.yml #236

name: Release - Upload Bundle to Play Store
on:
workflow_dispatch:
env:
ASANA_PAT: ${{ secrets.GH_ASANA_SECRET }}
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
- name: Get Previous tag
id: fetch_tag
uses: oprypin/find-latest-tag@v1
with:
repository: duckduckgo/android
prefix: '5.'
- name: Decode upload keys
uses: davidSchuppa/base64Secret-toFile-action@v2
with:
secret: ${{ secrets.UPLOAD_RELEASE_PROPERTIES }}
fileName: ddg_android_build_upload.properties
destination-path: $HOME/jenkins_static/com.duckduckgo.mobile.android/
- name: Decode key file
uses: davidSchuppa/base64Secret-toFile-action@v2
with:
secret: ${{ secrets.UPLOAD_RELEASE_KEY }}
fileName: ddg-upload-keystore.jks
destination-path: $HOME/jenkins_static/com.duckduckgo.mobile.android/
- name: Assemble the bundle
run: ./gradlew bundleInternalRelease -PversionNameSuffix=-nightly -PuseUploadSigning -PlatestTag=${{ steps.fetch_tag.outputs.tag }}
- name: Capture App Bundle Path
id: capture_output
run: |
output=$(find app/build/outputs/bundle/internalRelease -name "*.aab")
echo "bundle_path=$output" >> $GITHUB_OUTPUT
- name: Use the captured bundle path
run: |
echo "The generated app bundle is located at: ${{ steps.capture_output.outputs.bundle_path }}"
- name: Upload app bundle as artifact
uses: actions/upload-artifact@v4
with:
name: app-bundle
path: ${{ steps.capture_output.outputs.bundle_path }}