Skip to content

Build docs

Build docs #2

Workflow file for this run

name: Build Docs
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[docs]"
- name: Add remote
run: git remote add pkg "https://github.com/WecoAI/weco-python.git"
- name: Build and deploy
run: |
mkdocs gh-deploy --force -c -v