Build, Sign and Create Release build using Github Actions | by Saqib | Aug, 2023
5. Github workflows
Everything is available to create Github workflow
.
5.1 Trigger Event
We want to trigger the workflow
whenever code is pushed to the main
branch.
5.2 Permission to workflow
We want to give permission to workflow
in order to create Release
over Github
It enables the workflow
to create the release
over Github which will come later in the workflow.
5.3 Setup code and gradle wrapper.
We want to checkout code and enable gradle wrapper as below.
5.4 Decode Keystore
As mentioned earlier to build and sign the release build, we have to decode the Keystore
which was encoded base64
and store it to the location specified inside release signing configuration inside gradle
.
5.5 Build and Sign Release Bundle
Build and sign the release build with the signing configurations.
workflow
is first setting environment variables which will be read inside app build.gradle
signing configurations as mentioned in Step 4 above.
./gradlew bundleRelease
is building only release bundle
, if you want to build apk as well you can use command ./gradlew assembleRelease
.
5.6 Retrieve Version Name.
In the next steps we want to create a release over Github
, in order to do that we need the version name specified in build.gradle
to create a tag and release name.
version_name
is an ext property inside build.gradle
which can be used to set a variable inside gradle using task as below.
tasks.register("appVersionName") {
println rootProject.ext.version_name
}
In the workflow step below we are retrieving the Version Name
from gradle variable appVersionName
and setting and environment variable version_name
so it can be used throughout workflow
using statement ${{ env.version_name }}
5.7 Create Release over Github.
In the last step we want to create a release over Github. The following step in the workflow will achieve that.
Using softprops Github Action to achieve that. ${{env.version_name}}
is the environment variable used to get the versionName configured in the previous step.
For the bundle file path please specify YourAppName and YourAppNameWithVariant , you can check when you create a normal build from Android Studio.
Related Posts
Leave a Reply Cancel reply
Categories
- ! Без рубрики (1)
- ++PU (1)
- 1 (1)
- 1w (1)
- 1win Brazil (1)
- 1win India (1)
- 1WIN Official In Russia (1)
- 1win Turkiye (1)
- 1xbet egypt (1)
- 2ankarafayansustasi.net_may (1)
- ankarafayansustasi.netsiteai apr (1)
- Artificial intelligence (1)
- Arts & Entertainment, Photography (1)
- Banda (7)
- belugasitesi_mAY (1)
- BH_TOPsitesi apr (1)
- BHsitesy_may (2)
- Blog (3)
- Bookkeeping (14)
- Bootcamp de programação (2)
- Bootcamp de programación (2)
- BT_TOPsitesi apr (1)
- casino (5)
- casinom-hub (1)
- casinom-hub.comsitesi apr (3)
- colombian mail order brides (1)
- Cryptocurrency exchange (2)
- Dinamobet_next (1)
- Disease & Illness, Colon Cancer (1)
- Dumanbet (1)
- Dumanbet_next (1)
- Finance, Insurance (1)
- FinTech (5)
- Forex Trading (11)
- Galabet (1)
- Health & Fitness, Fitness Equipment (1)
- Hitbet (1)
- Home & Family, Crafts (1)
- Home & Family, Gardening (1)
- Internet Business, Audio-Video Streaming (1)
- Internet Business, Ecommerce (1)
- Internet Business, Email Marketing (1)
- Internet Business, Internet Marketing (1)
- IT Вакансії (1)
- IT Образование (5)
- IT Освіта (1)
- latin women dating (1)
- mail order bride (1)
- Mars bahis (2)
- Matadorbet (1)
- minimiri.comsitesi apr (3)
- Mobile App Development (771)
- Mostbet Russia (1)
- New Post (1)
- News (14)
- PB_TOPsitesi apr (1)
- PBsitesi_may (1)
- Pusulabet (1)
- redmirepool.bizsitesi apr (2)
- redmirepoolsitesi_may (1)
- Reference & Education, College (1)
- Reference & Education, Sociology (1)
- Rokusitesi apr (1)
- Sober living (6)
- Society, Divorce (1)
- Software development (7)
- Superbetin (1)
- Tempobet_next (1)
- thelongeststride.comsitesi apr (1)
- tipobet-turkiyesitesi apr (1)
- Ultrabet (1)
- Uncategorized (1)
- Игра (2)
- казино (1)
- Криптовалюты (1)
- Новости Криптовалют (1)
- Финтех (7)
- Форекс Брокеры (9)
- Форекс обучение (2)