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
|
2023-05-29 09:07:13 +02:00
|
|
|
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
|
|
|
|
|