Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Cesium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
Cesium-grp
Cesium
Commits
2cc1bd63
Commit
2cc1bd63
authored
8 years ago
by
Benoit Lavenier
Browse files
Options
Downloads
Patches
Plain Diff
New script to upload assets to github
parent
a0bd0a82
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
release.sh
+14
-16
14 additions, 16 deletions
release.sh
with
14 additions
and
16 deletions
release.sh
+
14
−
16
View file @
2cc1bd63
...
@@ -30,25 +30,30 @@ if [[ $2 =~ ^[0-9]+.[0-9]+.[0-9]+((a|b)[0-9]+)?$ && $3 =~ ^[0-9]+$ ]]; then
...
@@ -30,25 +30,30 @@ if [[ $2 =~ ^[0-9]+.[0-9]+.[0-9]+((a|b)[0-9]+)?$ && $3 =~ ^[0-9]+$ ]]; then
;;
;;
esac
esac
# Update config file
gulp config
--env
default
# Commit
# Commit
git reset HEAD
git reset HEAD
case
"
$1
"
in
rel
)
git add package.json config.xml
;;
pre
)
git add package.json config.xml
git add package.json config.xml
;;
esac
git commit
-m
"v
$2
"
git commit
-m
"v
$2
"
git tag
"v
$2
"
git tag
"v
$2
"
git push
git push
# Build assets
# Build assets
gulp default
--env
default
ionic build android
--release
ionic build android
--release
ionic build firefoxos
--release
ionic build firefoxos
--release
gulp build:web
--release
gulp build:web
--release
echo
"**********************************"
echo
"* Build release
$2
succeed !"
echo
"* "
echo
"* "
echo
"* Now please deploy files to github using:"
echo
"* "
echo
"* > ./github.sh pre|rel user:pwd"
echo
"* "
echo
"**********************************"
else
else
echo
"Wrong version format"
echo
"Wrong version format"
echo
"Usage:"
echo
"Usage:"
...
@@ -58,10 +63,3 @@ else
...
@@ -58,10 +63,3 @@ else
echo
" - android-version: nnn"
echo
" - android-version: nnn"
fi
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment