Skip to content

Commit

Permalink
Switch Circle 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanScherer committed Mar 7, 2018
1 parent 9bd14a1 commit e535855
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
19 changes: 19 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,19 @@
version: 2
jobs:
build:
docker:
- image: buildpack-deps:stretch
steps:
- checkout
- run:
name: Install Hugo
command: ./ci-install-hugo.sh
- run:
name: Hugo
command: hugo
- deploy:
name: Deploy
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
./update_github_pages.sh
fi
2 changes: 1 addition & 1 deletion ci-install-hugo.sh
Expand Up @@ -6,5 +6,5 @@ set -e
# Install Hugo if not already cached or upgrade an old version.
wget https://github.com/spf13/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz
tar xvzf hugo_${HUGO_VERSION}_Linux-64bit.tar.gz
cp hugo_${HUGO_VERSION}_linux_amd64/hugo_${HUGO_VERSION}_linux_amd64 $HOME/bin/hugo
cp hugo_${HUGO_VERSION}_linux_amd64/hugo_${HUGO_VERSION}_linux_amd64 /usr/bin/hugo
rm -rf hugo_${HUGO_VERSION}_linux_amd64*
13 changes: 0 additions & 13 deletions circle.yml

This file was deleted.

0 comments on commit e535855

Please sign in to comment.