Skip to content

Replace messages generator with iterator class that implements len() #174

Replace messages generator with iterator class that implements len()

Replace messages generator with iterator class that implements len() #174

Workflow file for this run

name: Documentation
on:
push:
branches: [main]
paths:
- "docs/**"
- "aiomqtt/**"
- README.md
- .github/workflows/docs.yml
pull_request:
paths:
- "docs/**"
- "aiomqtt/**"
- README.md
- .github/workflows/docs.yml
jobs:
docs:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4 # Uses the Python version in .python-version
- name: Install poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Load virtual environment cache
id: cache
uses: actions/cache@v2
with:
path: .venv
key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: scripts/setup
- name: Build documentation
run: scripts/docs
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build
publish_branch: documentation
user_name: "github-actions[bot]"
user_email: "github-actions[bot]@users.noreply.github.com"