-
Notifications
You must be signed in to change notification settings - Fork 164
56 lines (47 loc) · 1.51 KB
/
main.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
name: CI
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '10.22.1'
- name: Install Dependencies
run: |
npm install -g bower gulp karma
npm install phantomjs
npm install
bower install
- name: Build and Deploy Volumio Classic UI
run: |
npm run build:volumio
mv dist dist-volumio
cd "dist-volumio"
echo '{"localhost": "http://127.0.0.1:3000"}' > app/local-config.json
git init
git config user.name "Volumio"
git config user.email "[email protected]"
git add .
git commit -m "Deploy to dist branch"
git remote add origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/volumio/Volumio2-UI.git
git push --force origin master:dist
cd ..
- name: Build and Deploy Volumio Manifest UI
run: |
npm run build:volumio3
mv dist dist-volumio3
cd "dist-volumio3"
echo '{"localhost": "http://127.0.0.1:3000"}' > app/local-config.json
git init
git config user.name "Volumio"
git config user.email "[email protected]"
git add .
git commit -m "Deploy to dist3 branch"
git remote add origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/volumio/Volumio2-UI.git
git push --force origin master:dist3