-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
44 lines (35 loc) · 955 Bytes
/
Copy path.travis.yml
File metadata and controls
44 lines (35 loc) · 955 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
33
34
35
36
37
38
39
40
41
42
43
language: go
go:
- 1.9
sudo: false
git:
depth: 10
branches:
only:
- master
env:
global:
- SOURCE_DIR="public"
- BUILD_BRANCH="source"
- DEPLOY_BRANCH="master"
install:
# Clean and don't fail
- rm -rf public || exit 0
# install hugo
- go get -u -v github.com/spf13/hugo
# Build the website
script:
- git clone https://github.com/letenkov/hugo-theme-coming-soon ./themes/soon
- hugo
# Deploy to GitHub pages
deploy:
local_dir: public # Default static site output dir for Hugo
repo: letenkov/letenkov.github.io # This is the slug of the repo you want to deploy your site to
target_branch: source # GitHub pages branch to deploy to (in other cases it can be gh-pages)
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # This is the authentication which you will setup in the next step in travis-ci dashboard
name: "Eugene Letenkov"
email: "eugene@letenkov.ru"
on:
branch: master