Socket io 2 (#829) #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "info@volumio.org" | |
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 "info@volumio.org" | |
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 | |