Skip to content

Commit 8f07137

Browse files
authored
feat(ci): deploy on merge to dev (#2743)
1 parent 9e26b73 commit 8f07137

File tree

3 files changed

+5
-44
lines changed

3 files changed

+5
-44
lines changed

.travis.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ git:
99
depth: 3
1010
submodules: false
1111

12-
env:
13-
global:
14-
- SAUCE_USERNAME=valorkin
15-
- SAUCE_ACCESS_KEY=aeaf806e-ad5c-484b-a8fe-4b4b9f54e99a
16-
1712
stages:
1813
- name: precache
1914
if: ( branch = development AND type = push ) OR type = pull_request

.travis.yml-old

Lines changed: 0 additions & 38 deletions
This file was deleted.

scripts/fetch-docs.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
const fs = require('fs-extra');
22
const exec = require('child_process').exec;
33

4+
const repoUrl = process.env.TRAVIS
5+
? 'https://github.com/valor-software/ngx-bootstrap.git'
6+
: 'git@github.com:valor-software/ngx-bootstrap.git';
7+
48
if (!fs.existsSync('gh-pages')) {
59
console.log('Cloning the latest version of gh-pages');
6-
runCmd("git clone -b gh-pages --single-branch --depth 1 git@github.com:valor-software/ngx-bootstrap.git gh-pages");
10+
runCmd(`git clone -b gh-pages --single-branch --depth 1 ${repoUrl} gh-pages`);
711
return;
812
}
913
console.log('Pulling the latest version of gh-pages');

0 commit comments

Comments
 (0)