Skip to content

Merge remote-tracking branch 'origin/master' #174

Merge remote-tracking branch 'origin/master'

Merge remote-tracking branch 'origin/master' #174

name: Build Unsigned APK
env:
# The name of the main module repository
main_project_module: app
# The name of the Play Store
playstore_name: ShiraBox
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- id: commit
uses: prompt/actions-commit-hash@v3
# Set Repository Name As Env Variable
- name: Set repository name as env variable
run: echo "repository_name=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
- name: Set Up JDK
uses: actions/[email protected]
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'
cache: 'gradle'
- name: Change wrapper permissions
run: chmod +x ./gradlew
# Create APK Debug
- name: Build apk debug project (APK) - ${{ env.main_project_module }} module
run: ./gradlew assembleDebug
# Upload Artifact Build
# Noted For Output [main_project_module]/build/outputs/apk/debug/
- name: Upload APK Debug - ${{ env.repository_name }}
uses: actions/[email protected]
with:
name: ${{ env.repository_name }}_${{ steps.commit.outputs.short }}-debug
path: ${{ env.main_project_module }}/build/outputs/apk/debug/