forked from LedgerHQ/ledger-live-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (81 loc) · 2.92 KB
/
bundle-app.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: bundle app
on:
pull_request:
branches:
- develop
- master
push:
branches:
- develop
- master
jobs:
bundle-apk:
runs-on: macos-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.4.0
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- name: install bundle
run: |
gem install bundler:2.1.4
- uses: ledgerhq/actions/check-member@v2.0.0
with:
username: ${{ github.actor }}
ban: ledgerlive
if: github.event_name == 'pull_request'
- uses: actions/checkout@v2
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- uses: actions/setup-node@main
with:
node-version: 14.x
- name: set git user
run: |
git config user.email "team-live@ledger.fr"
git config user.name "Team Live"
- name: install dependencies
run: yarn --frozen-lockfile --network-timeout 100000
- uses: ledgerhq/actions/get-package-infos@v1.0.0
id: version
- name: set beta name
uses: ./.github/actions/change-product-name
- name: Get short SHA
id: slug
run: echo "::set-output name=sha8::$(git rev-parse HEAD)"
- name: make local version
run: yarn version --new-version=${{ steps.version.outputs.clean }}-sha.${{ steps.slug.outputs.sha8 }}
- name: build the app
run: |
export ANDROID_KEYSTORE_FILE=$(pwd)/android/app/staging.kstr
export ANDROID_KEYSTORE_PASS=staging
export ANDROID_KEY_ALIAS=staging
export ANDROID_KEY_PASS=staging
bundle exec fastlane android apk --env production
- uses: ledgerhq/actions/get-package-infos@v1.0.0
id: post-version
- name: upload Android app 1/4
uses: actions/upload-artifact@v1
with:
name: ${{ steps.post-version.outputs.version }}-arm64-v8a-android.apk
path: android/app/build/outputs/apk/release/app-arm64-v8a-release.apk
- name: upload Android app 2/4
uses: actions/upload-artifact@v1
with:
name: ${{ steps.post-version.outputs.version }}-armeabi-v7a-android.apk
path: android/app/build/outputs/apk/release/app-armeabi-v7a-release.apk
- name: upload Android app 3/4
uses: actions/upload-artifact@v1
with:
name: ${{ steps.post-version.outputs.version }}-x86_64-android.apk
path: android/app/build/outputs/apk/release/app-x86_64-release.apk
- name: upload Android app 4/4
uses: actions/upload-artifact@v1
with:
name: ${{ steps.post-version.outputs.version }}-x86-android.apk
path: android/app/build/outputs/apk/release/app-x86-release.apk