Skip to content

Mark main activity as exported #8

Mark main activity as exported

Mark main activity as exported #8

Workflow file for this run

name: Deploy version to Play Store
on:
workflow_dispatch:
# Enable manual run.
inputs:
track:
description: 'Play Store track to use (alpha OR production)'
required: true
default: 'alpha'
push:
tags:
# Deploy every tagged version.
- 'v*'
jobs:
fastlane-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Build and deploy the application
uses: ./.github/actions/docker
with:
command: >
./entrypoint.sh && cd android && bundle exec fastlane publish
track:${{ github.event.inputs.track || 'alpha' }}
play_store_upload_key: ${{ secrets.PLAY_STORE_UPLOAD_KEY }}
keystore_key_alias: ${{ secrets.KEYSTORE_KEY_ALIAS }}
keystore_key_password: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
keystore_store_password: ${{ secrets.KEYSTORE_STORE_PASSWORD }}
play_store_config_json: ${{ secrets.PLAY_STORE_CONFIG_JSON }}
- name: Detect pushed tag name
id: tag
# Inspired by https://stackoverflow.com/a/58178121.
run: echo ::set-output name=name::${GITHUB_REF#refs/*/}
- name: Describe current version
id: version
# This version includes tag name + commit hash.
run: echo ::set-output name=name::$(git describe --tags)
- name: Draft release
id: draft
# Configured in `/.github/release-drafter.yml`.
uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Use the pushed version tag instead of auto-drafted one.
with:
name: ${{ steps.tag.outputs.name }}
tag: ${{ steps.tag.outputs.name }}
- name: Upload app bundle as release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.draft.outputs.upload_url }}
asset_path: ./build/app/outputs/bundle/prodRelease/app-prod-release.aab
asset_name: ididit-${{ steps.version.outputs.name }}.aab
asset_content_type: application/octet-stream