language: python

python:
  - 3.6

install:
  - wget https://github.com/gohugoio/hugo/releases/download/v0.40.1/hugo_0.40.1_Linux-64bit.deb
  - sudo dpkg -i hugo*.deb
  - rm -rf public || exit 0

script:
  - python zotero/update.py
  - hugo -b https://yannforget.github.io/spell-website/

after_success:
  - hugo -d site
  - zip -r site.zip site
  - mv site.zip public/site.zip

deploy:
  provider: pages
  skip_cleanup: true
  github_token: $GITHUB_TOKEN
  local_dir: public
  on:
    branch: master
language: python

python:
  - 3.6

install:
  - sudo apt-get install lftp
  - wget https://github.com/gohugoio/hugo/releases/download/v0.40.1/hugo_0.40.1_Linux-64bit.deb
  - sudo dpkg -i hugo*.deb
  - rm -rf public || exit 0

script:
  - python zotero/update.py
  - hugo -b https://yannforget.github.io/spell-website/

after_success:
  - hugo -d site
  - zip -r site.zip site
  - mv site.zip public/site.zip
  - ./deploy.sh

deploy:
  provider: pages
  skip_cleanup: true
  github_token: $GITHUB_TOKEN
  local_dir: public
  on:
    branch: master
Deploy website if build suceeds
Deploy website if build suceeds
