Skip to content

v1.3.4 🌈

v1.3.4 🌈 #2

---
name: Generate and publish documentation
on:
release:
types: [published]
workflow_dispatch:
jobs:
publish_documentation:
runs-on: ubuntu-latest
permissions:
contents: write
environment:
name: pypi
url: https://pypi.org/p/fakeredis
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Publish documentation
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
run: |
pip install -r docs/requirements.txt
mkdocs gh-deploy --force
mkdocs --version