-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (36 loc) · 972 Bytes
/
ui-release.yml
File metadata and controls
46 lines (36 loc) · 972 Bytes
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
name: UI Release
on:
push:
tags:
- "ui-v*"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ui
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Enable Corepack
run: |
corepack enable
corepack prepare yarn@4.9.2 --activate
- name: Install dependencies
run: yarn install --immutable
- name: Build UI
run: yarn build
env:
NODE_OPTIONS: --max-old-space-size=4096
- name: Pack dist
run: tar -czf loopai-ui-dist.tar.gz -C dist .
- name: Create GitHub release
run: gh release create "$GITHUB_REF_NAME" loopai-ui-dist.tar.gz --title "$GITHUB_REF_NAME" --notes "LoopAI UI build." --verify-tag
env:
GH_TOKEN: ${{ github.token }}