-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwercker.yml
64 lines (55 loc) · 1.75 KB
/
wercker.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
box: wercker/ruby
build:
steps:
# Install dependencies
- bundle-install
# Execute jeykyll doctor command to validate the
# site against a list of known issues.
- script:
name: jekyll doctor
code: bundle exec jekyll doctor
- script:
name: sass compile
code: |-
mkdir -p 'assets/css/'
bundle exec sass --style compressed assets/scss/styles.scss:assets/css/styles.min.css --debug-info
# Generate staging, no drafts in here
- script:
name: generate staging site
code: |-
bundle exec jekyll build --trace
- script:
name: copy site output
code: |-
# Copy site to output directory for production
cp --recursive _site/* "$WERCKER_OUTPUT_DIR/"
#mkdir "$WERCKER_OUTPUT_DIR/production"
#cp --recursive _site/* "$WERCKER_OUTPUT_DIR/production/"
- create-file:
name: generate production robots.txt
filename: $WERCKER_OUTPUT_DIR/robots.txt
content: |-
User-agent: *
Allow: /
Sitemap: $SITE_URL/sitemap.xml
deploy:
steps:
- add-ssh-key:
keyname: WERCKER
- script:
name: Initialize new repository
code: |-
# remove current .git folder
rm -rf .git
git init
git config --global user.email "urbanek.jaroslav@gmail.com"
git config --global user.name "Jaroslav Urbánek"
git remote add origin $GIT_ORIGIN
git remote set-url origin $GIT_ORIGIN
git remote -v
- script:
name: Deploy to github pages
code: |-
git add .
git commit -m "Deploy commit from $WERCKER_STARTED_BY (by Wercker)"
git push -f origin master