Skip to content

Merge pull request #124 from ONSdigital/development #47

Merge pull request #124 from ONSdigital/development

Merge pull request #124 from ONSdigital/development #47

name: "Deploy MkDocs to GitHub Pages"
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip3 install -e .[doc]
- name: Build the MkDocs site
run: mkdocs build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN}}
publish_dir: ./site