-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (43 loc) · 1.22 KB
/
builds.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
name: Build LXD-UI with Incus Patches
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y git nodejs npm
- name: Checkout LXD-UI
uses: actions/checkout@v3
with:
repository: canonical/lxd-ui
path: lxd-ui
- name: Checkout Incus
uses: actions/checkout@v3
with:
repository: zabbly/incus
path: incus
- name: Apply Incus Patches
run: |
cd lxd-ui
for patch in ../incus/patches/ui-canonical-*.patch; do
git apply --reject --whitespace=fix $patch
done
sed -i -f "../incus/patches/ui-canonical-renames.sed" src/*/*.ts* src/*/*/*.ts* src/*/*/*/*.ts* src/*/*/*/*/*.ts*
- name: Install and Build LXD-UI
run: |
cd lxd-ui
npm install -g yarn
yarn install
yarn build
- name: Package Build
run: |
cd lxd-ui/build/ui
tar -czvf lxd-ui.tar.gz *
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: lxd-ui
path: lxd-ui/build/ui/lxd-ui.tar.gz