doc: udpate .gitlab-ci.yml
This commit is contained in:
1 parent
3f5bb8f705
commit
65b76ed393
1 file changed
+11
-2
+11
-2
@@ -1,12 +1,21 @@
|
||||
# Using the latest of ubuntu image
|
||||
image: ubuntu:latest
|
||||
before_script:
|
||||
- apt-get update -qy # Check for update
|
||||
- apt-get install -y lftp # Install lftp
|
||||
- apt update -qy # Check for update
|
||||
- apt install -y lftp # Install lftp
|
||||
- apt install curl # Install curl
|
||||
- curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash -
|
||||
- apt install nodejs # Install NodeJS
|
||||
- npm install -g hexo-cli # Install Hexo itself
|
||||
- npm install # Install Hexo modules and dependencies
|
||||
- npm install hexo-renderer-pug # Install Butterfly pug
|
||||
- npm install hexo-renderer-stylus # Install stylus renderer
|
||||
|
||||
deploy via lftp:
|
||||
stage: deploy
|
||||
script:
|
||||
- hexo clean # Hexo clean previous static site
|
||||
- hexo generate # Hexo generate Static Site
|
||||
- lftp -e "set ssl:verify-certificate no; open $FTP_HOST; user $FTP_USERNAME $FTP_PASSWORD $FTP_PORT; mirror -X .* -X .*/ --reverse --verbose --delete public/ $FTP_REMOTE_PATH/; bye"
|
||||
artifacts:
|
||||
paths:
|
||||
|
||||
Reference in new issue
Block a user