mirror of
https://github.com/RoboSats/robosats.git
synced 2025-02-20 12:19:00 +00:00
Add android build workflow
This commit is contained in:
parent
41973cafe9
commit
61b6148128
44
.github/workflows/android-build.yml
vendored
Normal file
44
.github/workflows/android-build.yml
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
name: Android Build
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [ "main" , "android-webview-app-ts"]
|
||||
paths: [ "mobile", "frontend" ]
|
||||
pull_request:
|
||||
branches: [ "main" , "android-webview-app-ts"]
|
||||
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:
|
||||
workflow: frontend-build.yml
|
||||
workflow_conclusion: success
|
||||
name: main-js
|
||||
path: mobile/html/Web.bundle/js/
|
||||
|
||||
- name: 'Install npm Dependencies'
|
||||
run: |
|
||||
cd mobile
|
||||
npm install
|
||||
|
||||
- name: 'Build Android Release'
|
||||
run: |
|
||||
cd mobile/android
|
||||
./gradlew assembleRelease
|
||||
|
||||
- name: 'Get Commit Hash'
|
||||
id: commit
|
||||
uses: pr-mpt/actions-commit-hash@v1
|
||||
|
||||
- name: 'Upload .apk Artifact'
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: robosats-${{ steps.commit.outputs.short }}.apk
|
||||
path: mobile/android/app/build/outputs/apk/release/app-release.apk
|
@ -1,4 +1,6 @@
|
||||
## RoboSats - Buy and sell Satoshis Privately
|
||||
[](https://github.com/Reckless-Satoshi/robosats/actions/workflows/docker-image.yml)
|
||||
[](https://github.com/Reckless-Satoshi/robosats/actions/workflows/frontend-build.yml)
|
||||
[](https://github.com/Reckless-Satoshi/robosats/releases)
|
||||
[](https://github.com/Reckless-Satoshi/robosats/blob/main/LICENSE)
|
||||
[](https://t.me/robosats)
|
||||
|
Loading…
Reference in New Issue
Block a user