Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
courses
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
R3
school
courses
Commits
9fd44214
Commit
9fd44214
authored
5 years ago
by
Laurent Heirendt
Browse files
Options
Downloads
Patches
Plain Diff
debug yml
parent
9d1d912c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.ci/deploy.sh
+9
-11
9 additions, 11 deletions
.ci/deploy.sh
with
9 additions
and
11 deletions
.ci/deploy.sh
+
9
−
11
View file @
9fd44214
...
...
@@ -3,30 +3,28 @@
cd
2019/template
# install npm
npm
install
-g
npm@latest grunt-cli generator-reveal
npm
install
-g
npm@latest
yo
grunt-cli generator-reveal
bower
npm
install
# build the master version into stable
git fetch
--tags
latestTag
=
$(
git describe
--tags
`
git rev-list
--tags
--max-count
=
1
`
)
git checkout
$latestTag
git submodule update
--init
grunt dist
mkdir
stable
mv
public/
*
stable/.
#git fetch --tags
#latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)
#git checkout $latestTag
#grunt dist
#mkdir stable
#mv public/* stable/.
# build the develop version into latest
git checkout
-f
develop
git fetch origin develop
git reset
--hard
origin/develop
git submodule update
--init
grunt dist
mkdir
latest
mv
public/
*
latest/.
# deploy the stable and latest directories
mv
stable public/.
#
mv stable public/.
mv
latest public/.
# auto redirect file
cp
.ci/.autoRedirect public/index.html
#
cp .ci/.autoRedirect public/index.html
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