@sikka/hawa 0.1.71 → 0.1.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: Hawa Build and Publish on Push
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main1]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
build:
|
|
9
|
+
runs-on: [self-hosted, linux, x64, sikka-sofware-server-development]
|
|
10
|
+
|
|
11
|
+
strategy:
|
|
12
|
+
matrix:
|
|
13
|
+
node-version: [16.x]
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v2
|
|
16
|
+
- name: Change working directory to ./landing
|
|
17
|
+
run: cd ./landing
|
|
18
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
19
|
+
uses: actions/setup-node@v2
|
|
20
|
+
with:
|
|
21
|
+
node-version: ${{ matrix.node-version }}
|
|
22
|
+
- name: Install Hawa Landing
|
|
23
|
+
run: |
|
|
24
|
+
rm -fr /home/cloudpanel/htdocs/hawa.style || true
|
|
25
|
+
cd /var/www/html/sikka-software/_work/Hawa/Hawa/landing
|
|
26
|
+
rm -fr package-lock.json || true
|
|
27
|
+
rm -fr node_modules || true
|
|
28
|
+
npm install
|
|
29
|
+
npm run build --if-present
|
|
30
|
+
ln -s /var/www/html/sikka-software/_work/Hawa/Hawa/landing /home/cloudpanel/htdocs/hawa.style
|
|
31
|
+
pm2 stop hawa-landing || true
|
|
32
|
+
pm2 delete hawa-landing || true
|
|
33
|
+
pm2 start npm --name "hawa-landing" -- start || true
|
|
@@ -11,25 +11,11 @@ on:
|
|
|
11
11
|
branches: [main]
|
|
12
12
|
|
|
13
13
|
jobs:
|
|
14
|
-
build:
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
steps:
|
|
17
|
-
- uses: actions/checkout@v2
|
|
18
|
-
- name: Use Node.js v16
|
|
19
|
-
uses: actions/setup-node@v2
|
|
20
|
-
with:
|
|
21
|
-
node-version: 16
|
|
22
|
-
- name: Install dependencies
|
|
23
|
-
run: |
|
|
24
|
-
if [ -e 'package-lock.json' ]; then
|
|
25
|
-
npm ci
|
|
26
|
-
else
|
|
27
|
-
npm install
|
|
28
|
-
fi
|
|
29
|
-
|
|
30
14
|
publish:
|
|
31
|
-
needs: build
|
|
32
15
|
runs-on: ubuntu-latest
|
|
16
|
+
strategy:
|
|
17
|
+
matrix:
|
|
18
|
+
node-version: [16.x]
|
|
33
19
|
steps:
|
|
34
20
|
- uses: actions/checkout@v2
|
|
35
21
|
- name: Use Node.js v16
|
|
@@ -54,16 +40,27 @@ jobs:
|
|
|
54
40
|
run: npm publish
|
|
55
41
|
|
|
56
42
|
deploy:
|
|
57
|
-
runs-on:
|
|
43
|
+
runs-on: [self-hosted, linux, x64, sikka-sofware-server-development]
|
|
44
|
+
strategy:
|
|
45
|
+
matrix:
|
|
46
|
+
node-version: [16.x]
|
|
58
47
|
steps:
|
|
59
48
|
- uses: actions/checkout@v2
|
|
60
49
|
- name: Change working directory to ./landing
|
|
61
50
|
run: cd ./landing
|
|
62
|
-
- name:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
- name:
|
|
67
|
-
run:
|
|
68
|
-
|
|
69
|
-
|
|
51
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
52
|
+
uses: actions/setup-node@v2
|
|
53
|
+
with:
|
|
54
|
+
node-version: ${{ matrix.node-version }}
|
|
55
|
+
- name: Install Hawa Landing
|
|
56
|
+
run: |
|
|
57
|
+
rm -fr /home/cloudpanel/htdocs/hawa.style || true
|
|
58
|
+
cd /var/www/html/sikka-software/_work/Hawa/Hawa/landing
|
|
59
|
+
rm -fr package-lock.json || true
|
|
60
|
+
rm -fr node_modules || true
|
|
61
|
+
npm install
|
|
62
|
+
npm run build --if-present
|
|
63
|
+
ln -s /var/www/html/sikka-software/_work/Hawa/Hawa/landing /home/cloudpanel/htdocs/hawa.style
|
|
64
|
+
pm2 stop hawa-landing || true
|
|
65
|
+
pm2 delete hawa-landing || true
|
|
66
|
+
pm2 start npm --name "hawa-landing" -- start || true
|