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
47a06b7b
Commit
47a06b7b
authored
Nov 18, 2016
by
qingwei.li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update rlease sh
parent
35b979da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
30 deletions
+33
-30
build/deploy-ci.sh
build/deploy-ci.sh
+33
-30
No files found.
build/deploy-ci.sh
View file @
47a06b7b
...
@@ -3,35 +3,15 @@ mkdir temp_web
...
@@ -3,35 +3,15 @@ mkdir temp_web
git config
--global
user.name
"element-bot"
git config
--global
user.name
"element-bot"
git config
--global
user.email
"wallement@gmail.com"
git config
--global
user.email
"wallement@gmail.com"
# build dev site
if
[[
"
$ROT_TOKEN
"
=
""
]]
;
then
if
[
"
$ROT_TOKEN
"
]
;
then
echo
"Bye~"
npm run build:file
&&
CI_ENV
=
/dev/
$TRAVIS_BRANCH
/ node_modules/.bin/cooking build
-c
build/cooking.demo.js
exit
0
cd
temp_web
git clone https://
$ROT_TOKEN
@github.com/ElementUI/dev.git
&&
cd
dev
mkdir
$TRAVIS_BRANCH
rm
-rf
$TRAVIS_BRANCH
/
**
cp
-rf
../../examples/element-ui/
**
$TRAVIS_BRANCH
/
git add
-A
.
git commit
-m
"
$TRAVIS_COMMIT_MSG
"
git push origin master
cd
../..
fi
# push theme-default
if
[
"
$ROT_TOKEN
"
]
;
then
cd
temp_web
git clone
-b
$TRAVIS_BRANCH
https://
$ROT_TOKEN
@github.com/ElementUI/theme-default.git
&&
cd
theme-default
rm
-rf
*
cp
-rf
../../packages/theme-default/
**
.
git add
-A
.
git commit
-m
"
$TRAVIS_COMMIT_MSG
"
git push origin
$TRAVIS_BRANCH
cd
../..
fi
fi
if
[
"
$TRAVIS_TAG
"
]
&&
[
"
$ROT_TOKEN
"
]
;
then
# release
# site sub folder
if
[[
"
$TRAVIS_TAG
"
]]
;
then
SUB_FOLDER
=
$(
echo
$TRAVIS_TAG
|
grep
-o
-E
'^\d+\.\d+'
)
# build sub folder
SUB_FOLDER
=
$(
echo
$TRAVIS_TAG
|
grep
-o
-E
'\d+\.\d+'
)
# build lib
# build lib
npm run dist
npm run dist
...
@@ -60,10 +40,8 @@ if [ "$TRAVIS_TAG" ] && [ "$ROT_TOKEN" ]; then
...
@@ -60,10 +40,8 @@ if [ "$TRAVIS_TAG" ] && [ "$ROT_TOKEN" ]; then
npm run deploy:build
npm run deploy:build
cd
temp_web
cd
temp_web
git clone
-b
gh-pages https://
$ROT_TOKEN
@github.com/ElemeFE/element.git
&&
cd
element
git clone
-b
gh-pages https://
$ROT_TOKEN
@github.com/ElemeFE/element.git
&&
cd
element
# only remove files
mkdir
$SUB_FOLDER
mkdir
$SUB_FOLDER
rm
-
f
*
rm
-
rf
*
.js
*
.css
*
.map static
rm
-rf
$SUB_FOLDER
/
**
rm
-rf
$SUB_FOLDER
/
**
cp
-rf
../../examples/element-ui/
**
.
cp
-rf
../../examples/element-ui/
**
.
cp
-rf
../../examples/element-ui/
**
$SUB_FOLDER
/
cp
-rf
../../examples/element-ui/
**
$SUB_FOLDER
/
...
@@ -71,4 +49,29 @@ if [ "$TRAVIS_TAG" ] && [ "$ROT_TOKEN" ]; then
...
@@ -71,4 +49,29 @@ if [ "$TRAVIS_TAG" ] && [ "$ROT_TOKEN" ]; then
git commit
-m
"
$TRAVIS_COMMIT_MSG
"
git commit
-m
"
$TRAVIS_COMMIT_MSG
"
git push origin gh-pages
git push origin gh-pages
cd
../..
cd
../..
echo
"DONE, Bye~"
exit
0
fi
fi
# build dev site
npm run build:file
&&
CI_ENV
=
/dev/
$TRAVIS_BRANCH
/ node_modules/.bin/cooking build
-c
build/cooking.demo.js
cd
temp_web
git clone https://
$ROT_TOKEN
@github.com/ElementUI/dev.git
&&
cd
dev
mkdir
$TRAVIS_BRANCH
rm
-rf
$TRAVIS_BRANCH
/
**
cp
-rf
../../examples/element-ui/
**
$TRAVIS_BRANCH
/
git add
-A
.
git commit
-m
"
$TRAVIS_COMMIT_MSG
"
git push origin master
cd
../..
# push dev theme-default
cd
temp_web
git clone
-b
$TRAVIS_BRANCH
https://
$ROT_TOKEN
@github.com/ElementUI/theme-default.git
&&
cd
theme-default
rm
-rf
*
cp
-rf
../../packages/theme-default/
**
.
git add
-A
.
git commit
-m
"
$TRAVIS_COMMIT_MSG
"
git push origin
$TRAVIS_BRANCH
cd
../..
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