💚 Fix docs build pipeline #2
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 documentation | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -e ".[dev]" | |
- name: Fetch documentation branch | |
run: git fetch origin documentation --depth=1 | |
- name: Build documentation | |
run: | | |
git config --global user.email "woke@ackeeblockchain.com" | |
git config --global user.name "Woke bot" | |
mike deploy -b documentation dev | |
- name: Push documentation | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.DOCUMENTATION_TOKEN }} | |
branch: documentation |