name: Website

on:
  push:
    branches: [master, test]
  pull_request:
    branches: [master, test]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - run: sudo apt-get install hunspell hunspell-en-us
      - uses: actions/checkout@v2
      - uses: actions/setup-python@v2
        with:
          python-version: "3.8"
      - run: pip install -U pip wheel setuptools
      - run: pip install . -r doc_requirements.txt -r dev_requirements.txt
      - run: pip freeze
      - run: doit -v2 website
      - uses: actions/upload-artifact@v2
        with:
          name: Website
          path: ./doc/_build
