Skip to content

Commit

Permalink
Automated deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
noirbizarre committed Sep 11, 2018
1 parent 015ae1c commit 38e8eee
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 1 deletion.
52 changes: 52 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
# use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers`
- image: circleci/python:3.6.1

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4

working_directory: ~/repo

steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "requirements.pip" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run:
name: install dependencies
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.pip ghp-import
- save_cache:
paths:
- ./venv
key: v1-dependencies-{{ checksum "requirements.pip" }}

- run:
name: Build site
command: |
. venv/bin/activate
inv build
- run:
name: Deploy to github pages
command: |
. venv/bin/activate
ghp-import -n --push output
1 change: 0 additions & 1 deletion develop.pip
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
-r requirements.pip
invoke
livereload
4 changes: 4 additions & 0 deletions requirements.pip
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ PyYAML
pelican-social>=0.1.1
pelican-frontmark
awesome-slugify
invoke

# Until https://github.com/voronind/awesome-slugify/issues/35 is fixed
Unidecode<0.05,>=0.04.14

0 comments on commit 38e8eee

Please sign in to comment.