fix: Incorrect request field names #44
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: Site build and deploy on push | |
on: | |
push: | |
branches: | |
- 'v*.*' # Always deploy on version branch update | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # fetch all commits/branches | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- name: Update pip | |
run: pip install --upgrade pip | |
- name: Install mkdocs-material | |
run: pip install mkdocs-material | |
- name: Install mkdocs-glightbox | |
run: pip install mkdocs-glightbox | |
- name: Install mike | |
run: pip install mike | |
- name: Configure Git user | |
run: | | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
- name: Extract branch name | |
shell: bash | |
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | |
id: extract_branch | |
- name: Deploy version site to gh_pages with mike | |
run: mike deploy -F mkdocs.yaml -p ${{ steps.extract_branch.outputs.branch }} |