🔀 Merge pull request #25 from astariul/dependabot/github_actions/acti… #42
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: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
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 gibbs | grep Version | cut -d ' ' -f 2) | |
mike retitle --push master $version |