Skip to content

Commit

Permalink
Merge pull request #12 from Micoder-dev/master
Browse files Browse the repository at this point in the history
create Build.yml for building & exporting APK using Github Action
  • Loading branch information
wwdablu authored Dec 29, 2023
2 parents f7d4eef + 167a9e1 commit 311e373
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build and Test

on:

push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

workflow_dispatch:


jobs:

build_job:
name: Building the APK
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Restore Cache
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Change wrapper permissions
run: chmod +x ./gradlew


- name: Touch local properties
run: touch local.properties
- name: Add Api Key
run: echo "apiKey=\"\"" >> local.properties

- name: Assemble Debug
run: ./gradlew assembleDebug

- name: Upload APK
uses: actions/upload-artifact@v2
with:
name: LottieBottomNav-APK
path: sample/build/outputs/apk/debug/**.apk

0 comments on commit 311e373

Please sign in to comment.