forked from hexojs/site
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move deploy procedure to .travis/deploy.sh. Remove the old theme.
- Loading branch information
Showing
47 changed files
with
34 additions
and
1,391 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,33 +13,16 @@ addons: | |
apt: | ||
packages: | ||
- graphicsmagick | ||
|
||
before_install: | ||
# Decrypt the private key | ||
- openssl aes-256-cbc -K $encrypted_06b8e90ac19b_key -iv $encrypted_06b8e90ac19b_iv -in .travis/ssh_key.enc -out ~/.ssh/id_rsa -d | ||
# Set the permission of the key | ||
- chmod 600 ~/.ssh/id_rsa | ||
# Start SSH agent | ||
- eval $(ssh-agent) | ||
# Add the private key to the system | ||
- ssh-add ~/.ssh/id_rsa | ||
# Copy SSH config | ||
- cp .travis/ssh_config ~/.ssh/config | ||
# Set Git config | ||
- git config --global user.name "Tommy Chen" | ||
- git config --global user.email [email protected] | ||
# Clone the repository | ||
- git clone https://github.com/hexojs/hexojs.github.io .deploy_git | ||
ssh_known_hosts: github.com | ||
|
||
install: | ||
# Install Hexo | ||
- npm install hexo-cli -g | ||
# Install dependencies | ||
- npm install --no-optional | ||
|
||
script: | ||
- hexo generate && gulp && hexo deploy | ||
- npm run build | ||
|
||
branches: | ||
only: | ||
- master | ||
deploy: | ||
provider: script | ||
script: .travis/deploy.sh | ||
on: | ||
branch: master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Decrypt the private key | ||
openssl aes-256-cbc -K $encrypted_06b8e90ac19b_key -iv $encrypted_06b8e90ac19b_iv -in .travis/ssh_key.enc -out ~/.ssh/id_rsa -d | ||
# Set the permission of the key | ||
chmod 600 ~/.ssh/id_rsa | ||
# Start SSH agent | ||
eval $(ssh-agent) | ||
# Add the private key to the system | ||
ssh-add ~/.ssh/id_rsa | ||
# Copy SSH config | ||
cp .travis/ssh_config ~/.ssh/config | ||
# Set Git config | ||
git config --global user.name "Tommy Chen" | ||
git config --global user.email [email protected] | ||
# Clone the repository | ||
git clone https://github.com/hexojs/hexojs.github.io .deploy_git | ||
# Deploy | ||
hexo deploy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.