-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.38 KB
/
patch_build_and_release.yaml
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
name: Patch build and release
on:
workflow_call:
inputs:
app:
type: string
required: true
secrets:
UESIO_CLI_USERNAME:
required: true
UESIO_CLI_PASSWORD:
required: true
jobs:
build:
runs-on: ubuntu-latest
environment: prod
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18.15.0
cache: "npm"
- name: Setup Uesio CLI Symlink
shell: bash
run: |
# Symlink the Uesio CLI for subsequent use
wget -q https://github.com/ues-io/uesio/releases/download/v0.5.5/uesio-linux
chmod +x uesio-linux
sudo ln -s $PWD/uesio-linux /usr/local/bin/uesio
- name: NPM install top level
shell: bash
run: npm ci
- name: Build, deploy, and package app
shell: bash
env:
UESIO_CLI_USERNAME: ${{ secrets.UESIO_CLI_USERNAME }}
UESIO_CLI_PASSWORD: ${{ secrets.UESIO_CLI_PASSWORD }}
UESIO_CLI_HOST: ${{ vars.UESIO_CLI_HOST }}
UESIO_CLI_LOGIN_METHOD: uesio/core.platform
run: |
echo "Building ${{ inputs.app }}"
cd apps/${{ inputs.app }}
npm ci
npm run lint
cd - >> /dev/null
bash bundle.sh apps/${{ inputs.app }}