Add deploy steps

This commit is contained in:
Jez Cope 2016-08-11 13:15:30 +01:00
parent 569cd4fd57
commit e30b096f30
1 changed files with 23 additions and 23 deletions

View File

@ -4,28 +4,28 @@ build:
- arjen/hugo-build:
version: '0.16'
disable_pygments: true
# deploy:
# steps:
# - s3sync:
# source_dir: output/
# delete-removed: true
# bucket-url: $AWS_BUCKET_URL
# key-id: $AWS_ACCESS_KEY_ID
# key-secret: $AWS_SECRET_ACCESS_KEY
# testing:
# - script:
# name: configure git
# code: |-
# git config --global user.email "j.cope@erambler.co.uk"
# git config --global user.name "Jez Cope"
deploy:
steps:
- s3sync:
source_dir: output/
delete-removed: true
bucket-url: $AWS_BUCKET_URL
key-id: $AWS_ACCESS_KEY_ID
key-secret: $AWS_SECRET_ACCESS_KEY
testing:
- script:
name: configure git
code: |-
git config --global user.email "j.cope@erambler.co.uk"
git config --global user.name "Jez Cope"
# rm -rf .git
# - script:
# name: deploy to github pages
# code: |-
# cd output
rm -rf .git
- script:
name: deploy to github pages
code: |-
cd output
# git init
# git add .
# git commit -m "Deploy commit from $WERCKER_STARTED_BY"
# git push -f $GIT_REMOTE master:gh-pages
git init
git add .
git commit -m "Deploy commit from $WERCKER_STARTED_BY"
git push -f $GIT_REMOTE master:gh-pages