Fix opencv dependency in CPU dockerfile #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish-docs | |
env: | |
GITHUB_ACTOR: georg-wolflein | |
GITHUB_REPOSITORY: georg-wolflein/chesscog | |
GITHUB_TOKEN: ${{ secrets.CHESSCOG_PAT_TOKEN }} | |
on: | |
push: | |
branches: [master] | |
jobs: | |
build_sphinx_job: | |
runs-on: ubuntu-latest | |
container: ubuntu:latest | |
steps: | |
- name: Get prerequisites and clone repository | |
env: | |
GITHUB_TOKEN: ${{ secrets.CHESSCOG_PAT_TOKEN }} | |
run: | | |
set -x | |
apt-get update | |
apt-get install -y git curl | |
git clone -b master "https://token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" . | |
shell: bash | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: false | |
- name: Install dependencies | |
run: poetry install -E docs | |
- name: Run build script for Sphinx pages | |
env: | |
GITHUB_TOKEN: ${{ secrets.CHESSCOG_PAT_TOKEN }} | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
cd docs | |
./buildsite.sh | |
shell: bash |