docs: Updated Readme and added CNAME file to docs dir (#5) #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |