catch2/.github/workflows/docs.yml

32 lines
588 B
YAML
Raw Normal View History

2023-04-16 11:43:56 +02:00
name: 📖 docs
on:
push:
branches: [devel]
pull_request:
branches: [devel]
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: Install Poetry
uses: abatilo/actions-poetry@v2
- name: Install dependencies
run: poetry install
- name: build docs
run: poetry run mkdocs build
- name: deploy
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/devel' }}
2023-04-16 11:43:56 +02:00
run: poetry run mkdocs gh-deploy --force