Skip to content

docs: Updated Readme and added CNAME file to docs dir (#5) #7

docs: Updated Readme and added CNAME file to docs dir (#5)

docs: Updated Readme and added CNAME file to docs dir (#5) #7

name: Build and deploy docs to GitHub Pages
on:
push:
branches:
- master
paths:
- 'mkdocs.yml'
- 'docs/**'
- 'eth_2_key_manager_api_client/**'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: install poetry
run: pip install poetry
- name: Configure Poetry
run: poetry config virtualenvs.in-project true
- name: Install dependencies
run: poetry install
- name: Build documentation
run: poetry run mkdocs build --verbose --clean
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site