Skip to content

Work on GH Actions

Work on GH Actions #5

Workflow file for this run

name: Docs
on:
push:
paths:
- '.github/workflows/docs.yaml'
- 'docs/**'
# TODO: Trigger on release tag creation
# TODO: Also create workflow for creating releases
jobs:
docs:
name: Build docs
runs-on: ubuntu-22.04
strategy:
matrix:
python:
- '3.8'
steps:
- name: Checkout
uses: actions/checkout@master
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
- name: "Configure git"
run: |
# Mike needs the git config user.name & user.email values set
git config --global user.name "Adam Charnock"
git config --global user.email "adam@adamcharnock.com"
- name: "Install poetry and lightbus"
run: |
pip install poetry
poetry install
- name: "Dump config schema"
run: |
poetry run lightbus dumpconfigschema > docs/static/default-config-schema.json
- name: "Build and push docs"
run: |
poetry run mike deploy --message="Automated build by CircleCI [ci skip]" dev
git push --force origin gh-pages