Skip to content

Commit

Permalink
Add circle CI to build demo
Browse files Browse the repository at this point in the history
  • Loading branch information
iamstevendao committed Jun 30, 2019
1 parent aff1c83 commit a5b17a6
Show file tree
Hide file tree
Showing 9 changed files with 68 additions and 31,213 deletions.
31 changes: 31 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: 2

jobs:
build:
docker:
- image: cypress/base:8

branches:
ignore:
- gh-pages

steps:
- checkout

- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}-{{ checksum "circle.yml" }}

- run:
name: Installing dependencies
command: npm install

- save_cache:
paths:
- node_modules
- ~/.cache
key: v1-dependencies-{{ checksum "package.json" }}-{{ checksum "circle.yml" }}

- run:
name: Build demo
command: sh demo.sh
24 changes: 24 additions & 0 deletions demo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env sh

# abort on errors
set -e

# build
NODE_ENV=demo npm run build

# Copy circle CI configuration to prevent running from gh-pages
cp ../circle.yml ./

# navigate into the build output directory
cd docs

git config --global user.email "$GH_EMAIL" > /dev/null 2>&1
git config --global user.name "$GH_NAME" > /dev/null 2>&1

git init
git add -A
git commit -m "Deploy"

git push -f git@github.com:EducationLink/vue-tel-input.git master:gh-pages

cd -
3 changes: 2 additions & 1 deletion demo/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Vue from 'vue';
import VueTelInput from '../src/vue-tel-input.vue';
import VueTelInput from '../dist/vue-tel-input';
import '../dist/vue-tel-input.css';

import App from './App.vue';

Expand Down
396 changes: 0 additions & 396 deletions docs/client.78c9d6d9.js

This file was deleted.

26 changes: 0 additions & 26 deletions docs/index.html

This file was deleted.

101 changes: 0 additions & 101 deletions docs/manifest.fe6c6e28.js

This file was deleted.

Loading

0 comments on commit a5b17a6

Please sign in to comment.