forked from rnmapbox/maps
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.16 KB
/
android-actions.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
name: Android Build
on:
workflow_call:
inputs:
NVMRC:
required: true
type: string
secrets:
MAPBOX_ACCESS_TOKEN:
required: true
MAPBOX_DOWNLOAD_TOKEN:
required: true
jobs:
build_example:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup node ${{ inputs.NVMRC }}
uses: actions/setup-node@v2.5.0
with:
node-version: ${{ inputs.NVMRC }}
- name: Setup JDK zulu 11
uses: actions/setup-java@v2.4.0
with:
distribution: 'zulu'
java-version: '11'
- run: echo MAPBOX_DOWNLOADS_TOKEN=$MAPBOX_DOWNLOAD_TOKEN > ~/.gradle/gradle.properties
working-directory: example
env:
MAPBOX_DOWNLOAD_TOKEN: ${{ secrets.MAPBOX_DOWNLOAD_TOKEN }}
- run: echo $MAPBOX_ACCESS_TOKEN > ./accesstoken
working-directory: example
env:
MAPBOX_ACCESS_TOKEN: ${{ secrets.MAPBOX_ACCESS_TOKEN }}
- run: yarn install --network-timeout 1000000
working-directory: example
- run: ./gradlew assemble
working-directory: example/android