-
Notifications
You must be signed in to change notification settings - Fork 47
74 lines (60 loc) · 2.08 KB
/
Copy pathheka-wallet-build-android.yml
File metadata and controls
74 lines (60 loc) · 2.08 KB
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
name: Build and release Android APK & AAB for Heka Wallet
on:
workflow_dispatch:
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
defaults:
run:
working-directory: ./heka-wallet
name: Build Android APK & AAB
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
with:
egress-policy: audit
- name: Prepare Github Runner
uses: pandaswhocode/initialize-github-job@ffb7446339e8e6007b942312ac95457d1a20b6cf # v1.0.4
with:
checkout: 'true'
checkout-ref: '${{ github.ref }}'
checkout-token: '${{ secrets.GITHUB_TOKEN }}'
checkout-fetch-depth: '0'
setup-java: 'true'
java-version: '17'
java-distribution: 'zulu'
java-cache: 'gradle'
setup-node: 'true'
node-version: '20'
- name: Enable Corepack
run: corepack enable
shell: bash
- name: Install dependencies
run: yarn install --immutable
shell: bash
- name: Get app version
id: version
working-directory: ./heka-wallet/app
run: echo "version=$(nbgv get-version -v NpmPackageVersion)" >> $GITHUB_OUTPUT
- name: Bundle Heka Wallet debug
run: yarn bundle-app:android:debug
env:
VERSION: ${{ steps.version.outputs.version }}
- name: Prepare artifacts
id: prepare_artifacts
run: |
mkdir "output"
cp "app/android/app/build/outputs/apk/debug/app-debug.apk" "output/heka-wallet.apk"
- name: Upload artifacts
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: Build artifacts
path: heka-wallet/output/