Test #20
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 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://github.com/volumio/Volumio2-UI.git | |
git push --force origin master:dist | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |