1
0
Fork 0
mirror of https://github.com/heyarne/airsonic-ui.git synced 2026-05-07 02:33:39 +02:00

Add deploy job to circleci

This commit is contained in:
heyarne 2019-12-14 10:03:48 +01:00
commit 8c484abf00
3 changed files with 28 additions and 2 deletions

View file

@ -49,6 +49,26 @@ jobs:
root: /home/circleci/repo/public
paths:
- "*"
deploy:
working_directory: ~/repo
docker:
- image: circleci/openjdk:11-jdk-stretch-node-browsers
steps:
- checkout
- attach_workspace:
at: /home/circleci/repo/public
- restore_cache:
keys:
- build_cache-{{ checksum "package.json" }}-{{ checksum "shadow-cljs.edn" }}
- run:
name: Install dependencies
command: npm install
- run:
name: Deploy to gh-pages branch
command: |
git config user.email "build@circleci.com"
git config user.name "ci-build"
npm run deploy
workflows:
version: 2
@ -60,3 +80,7 @@ workflows:
ignore:
- gh-pages
- build
- deploy:
requires:
- test
- build