forked from project-renard/project-renard.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (29 loc) · 1.02 KB
/
.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
sudo: false
addons:
apt:
packages:
- build-essential
- ikiwiki
- libtext-multimarkdown-perl
install:
- openssl aes-256-cbc -K $encrypted_4f43c47a058e_key -iv $encrypted_4f43c47a058e_iv -in .travisdeploykey.enc -out .travisdeploykey -d
- chmod go-rwx .travisdeploykey
- eval `ssh-agent -s`
- ssh-add .travisdeploykey
- git config --global user.name "Travis-CI"
- git config --global user.email "noreply@travis-ci.org"
- COMMIT_MESSAGE="Publishing site on `date "+%Y-%m-%d %H:%M:%S"` from
`git log -n 1 --format='commit %h - %s'`"
script:
#- set -e
- export PERL5LIB="./.ikiwiki-plugin"
- ikiwiki --rebuild --setup project-renard.setup --url 'http://project-renard.github.io/'
- git clone --bare -b master git@github.com:project-renard/project-renard.github.io.git _site/.git
- cd _site
- git config core.bare false
- git add -f .
- 'git commit -m "${COMMIT_MESSAGE}"'
- git push -f git@github.com:project-renard/project-renard.github.io.git master:master
branches:
only:
- source