Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
87b9c43f
Commit
87b9c43f
authored
Oct 29, 2016
by
qingwei.li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deploy-ci: fix shell
parent
c7fad7c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
build/deploy-ci.sh
build/deploy-ci.sh
+6
-2
No files found.
build/deploy-ci.sh
View file @
87b9c43f
#! /bin/sh
#! /bin/sh
mkdir
temp_web
mkdir
temp_web
git config user.name
"element_bot"
git config user.email
"element_bot"
# build dev site
# build dev site
if
[
"
$TRAVIS_BRANCH
"
=
"master"
]
&&
[
"
$GH_TOKEN
"
]
;
then
if
[
"
$TRAVIS_BRANCH
"
=
"master"
]
&&
[
"
$GH_TOKEN
"
]
;
then
CI_ENV
=
/dev/ ./node_modules/.bin/cooking build
-c
build/cooking.demo.js
CI_ENV
=
/dev/ ./node_modules/.bin/cooking build
-c
build/cooking.demo.js
cd
temp_web
cd
temp_web
git clone https://
$GH_TOKEN
@github.com/ElementUI/dev.git
&&
cd
dev
git clone https://
$GH_TOKEN
@github.com/ElementUI/dev.git
&&
cd
dev
git config user.name
"element_bot"
git config user.email
"element_bot"
rm
-rf
*
rm
-rf
*
cp
-rf
../../examples/element-ui/
**
.
cp
-rf
../../examples/element-ui/
**
.
git add
-A
.
git add
-A
.
...
@@ -21,6 +21,8 @@ if [ "$TRAVIS_TAG" ] && [ "$GH_TOKEN" ]; then
...
@@ -21,6 +21,8 @@ if [ "$TRAVIS_TAG" ] && [ "$GH_TOKEN" ]; then
npm run dist
npm run dist
cd
temp_web
cd
temp_web
git clone https://
$GH_TOKEN
@github.com/ElementUI/lib.git
&&
cd
lib
git clone https://
$GH_TOKEN
@github.com/ElementUI/lib.git
&&
cd
lib
git config user.name
"element_bot"
git config user.email
"element_bot"
rm
-rf
*
rm
-rf
*
cp
-rf
../../lib/
**
.
cp
-rf
../../lib/
**
.
git add
-A
.
git add
-A
.
...
@@ -35,6 +37,8 @@ if [ "$TRAVIS_TAG" ] && [ "$GH_TOKEN" ]; then
...
@@ -35,6 +37,8 @@ if [ "$TRAVIS_TAG" ] && [ "$GH_TOKEN" ]; then
npm run deploy
npm run deploy
cd
temp_web
cd
temp_web
git clone https://
$GH_TOKEN
@github.com/ElemeFE/element.git
&&
cd
element
git clone https://
$GH_TOKEN
@github.com/ElemeFE/element.git
&&
cd
element
git config user.name
"element_bot"
git config user.email
"element_bot"
git checkout gh-pages
git checkout gh-pages
rm
-rf
*
rm
-rf
*
cp
-rf
../../examples/element-ui/
**
.
cp
-rf
../../examples/element-ui/
**
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment