forked from DeviceFarmer/minicap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpublish.yml
More file actions
31 lines (31 loc) · 1.03 KB
/
publish.yml
File metadata and controls
31 lines (31 loc) · 1.03 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
version: v1.0
name: Publish
blocks:
- name: Publish
task:
jobs:
- name: NPM publish
commands:
- checkout
- git submodule init
- git submodule update
- 'wget https://dl.google.com/android/repository/commandlinetools-linux-6514223_latest.zip -O ~/android-commandline-tools.zip '
- mkdir -p ~/android-sdk/cmdline-tools/
- unzip ~/android-commandline-tools.zip -d ~/android-sdk/cmdline-tools
- 'export PATH=$PATH:~/android-sdk/cmdline-tools/tools/bin'
- yes | sdkmanager "ndk;21.3.6528147"
- 'export PATH=$PATH:~/android-sdk/ndk/21.3.6528147/'
- 'export ANDROID_SDK_ROOT=~/android-sdk'
- sem-version node 12
- sem-version java 17
- cache restore
- npm install
- cache store
- npm install
- npm publish --access public
secrets:
- name: npmjs
agent:
machine:
type: e1-standard-2
os_image: ubuntu2004