-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
30 lines (29 loc) · 985 Bytes
/
.travis.yml
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
language: go
install:
- chmod +x deploy.sh
- chmod +x compile.sh
- openssl aes-256-cbc -K $encrypted_e3af5a1f1fe0_key -iv $encrypted_e3af5a1f1fe0_iv -in deploy_key.enc -out deploy_key -d
- chmod 600 deploy_key
- eval `ssh-agent -s`
- ssh-add deploy_key
- rm -rf out || exit 0 # cleanup previous run
script:
- go get github.com/spf13/hugo
- bash ./compile.sh
- bash ./deploy.sh
env:
global:
- GIT_DEPLOY_DIR=out # this is the default output dir of Hugo
- GIT_DEPLOY_BRANCH=master # this is the target branch, replace by gh-pages for Project Pages
- GIT_DEPLOY_USERNAME="Mark Beznos"
- [email protected] # replace by your email
- [email protected]:vibbix/vibbix.github.io.git
# - GOPATH=$HOME/go
# - GOBIN=$GOPATH/bin
# - PATH = $PATH:$GOBIN
branches:
only:
- source # replace by master for Project Pages
after_success:
- cp .travis.yml out # all branches need this file
- bash deploy.sh # run the deploy script