mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-16 18:52:25 +01:00
32 lines
588 B
YAML
32 lines
588 B
YAML
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' }}
|
|
run: poetry run mkdocs gh-deploy --force
|
|
|