2
0
mirror of https://github.com/offen/website.git synced 2024-11-23 01:20:29 +01:00

install dependencies in deploy step

This commit is contained in:
Frederik Ring 2019-05-31 17:22:09 +02:00
parent e0808b7906
commit fb34f1ae49

View File

@ -12,16 +12,13 @@ jobs:
- TARGET_BRANCH: gh-pages - TARGET_BRANCH: gh-pages
steps: steps:
- checkout - checkout
- run:
name: Install deps
command: |
python -m venv venv
source venv/bin/activate
pip install --user -r requirements.txt
- deploy: - deploy:
name: Deploy name: Deploy
command: | command: |
if [ $CIRCLE_BRANCH == $SOURCE_BRANCH ]; then if [ $CIRCLE_BRANCH == $SOURCE_BRANCH ]; then
python -m venv venv
source venv/bin/activate
pip install --user -r requirements.txt
source venv/bin/activate source venv/bin/activate
git config --global user.email $GH_EMAIL git config --global user.email $GH_EMAIL