Add android build workflow

This commit is contained in:
Reckless_Satoshi 2022-07-14 10:27:14 -07:00
parent 33941ce359
commit 8fe13cdcba
No known key found for this signature in database
GPG Key ID: 9C4585B561315571

View File

@ -12,14 +12,13 @@ on:
pull_request:
branches: [ "main" ]
paths: [ "mobile", "frontend" ]
jobs:
build-android:
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v3
- name: 'Download main.js Artifact'
uses: dawidd6/action-download-artifact@v2
with:
@ -27,12 +26,9 @@ jobs:
workflow_conclusion: success
name: main-js
path: mobile/html/Web.bundle/js/
- name: 'Install npm Dependencies'
- name: 'Install npm dependencies'
run: |
cd mobile
npm install
- name: 'Build Android Release'
run: |
cd mobile/android
@ -78,4 +74,4 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./mobile/android/app/build/outputs/apk/release/app-release.apk
asset_name: robosats-${{ steps.commit.outputs.short }}.apk
asset_content_type: application/apk
asset_content_type: application/apk