-
Notifications
You must be signed in to change notification settings - Fork 20
70 lines (59 loc) · 1.73 KB
/
release-dev.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
name: Release dev
on:
push:
branches: [ main, agallardol/mobile-build ]
defaults:
run:
working-directory: ./
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use nx set shas
uses: nrwl/nx-set-shas@v3
- name: Setup Node version
uses: actions/setup-node@v3
with:
node-version: 18
check-latest: false
registry-url: https://registry.npmjs.org
cache: "npm"
cache-dependency-path: package-lock.json
- name: Install dependencies
run: |
npm cache verify
npm ci --no-audit --prefer-offline
# shinkai-visor
- name: Run NX build on shinkai-visor
run: npx nx build shinkai-visor --skip-nx-cache --verbose
env:
VERSION: 0.0.0.${{github.run_number}}
- uses: actions/upload-artifact@v3
with:
name: shinkai-visor
path: dist/apps/shinkai-visor
if-no-files-found: error
retention-days: 5
# shinkai-app-android
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Run NX build on shinkai-app-android
run: |
npx capacitor-set-version -v $VERSION -b $BUILD $APP_PATH
npx nx build:android shinkai-app --verbose
env:
VERSION: 0.0.0
BUILD: ${{github.run_number}}
APP_PATH: ./apps/shinkai-app
- uses: actions/upload-artifact@v3
with:
name: shinkai-app-android
path: dist/apps/shinkai-app-android
if-no-files-found: error
retention-days: 5