-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
32 lines (28 loc) · 795 Bytes
/
Copy path.travis.yml
File metadata and controls
32 lines (28 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
language: node_js
node_js:
- '12.16.1'
before_install:
# Decrypt the private key
- openssl aes-256-cbc -K $encrypted_16b1459e69da_key -iv $encrypted_16b1459e69da_iv
-in .travis/travis_rsa.enc -out ~/.ssh/travis_rsa -d
# Set the permission of the key
- chmod 600 ~/.ssh/travis_rsa
# Start SSH agent
- eval $(ssh-agent)
# Add the private key to the system
- ssh-add ~/.ssh/travis_rsa
# Copy SSH config
- cp .travis/ssh_config ~/.ssh/config
# Set Git config
- git config --global user.name "dengxit"
- git config --global user.email dengxit@gmail.com
# Install Hexo
- npm install hexo-cli -g
# Clone the repository
- git clone https://github.com/dengxit/dengxit.github.io .deploy
script:
- hexo generate
- hexo deploy
branches:
only:
- master