Merge pull request #125 from astariul/astariul-patch-2 #83
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: mike_dev | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
docs_dev_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.8" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e .[docs] | |
env: | |
GH_PAT: ${{ secrets.AUTH_TOKEN }} | |
- name: Setup doc deploy | |
run: | | |
git config --global user.name Docs-deploy | |
git config --global user.email [email protected] | |
- name: Build docs and push with mike | |
run: | | |
mike deploy --push --update-aliases master | |
version=$(pip show pytere | grep Version | cut -d ' ' -f 2) | |
mike retitle --push master $version |