Skip to content

ci(.github/workflows)(deps): Bump actions/setup-python from 4 to 5 (#8) #52

ci(.github/workflows)(deps): Bump actions/setup-python from 4 to 5 (#8)

ci(.github/workflows)(deps): Bump actions/setup-python from 4 to 5 (#8) #52

Workflow file for this run

name: Build MkDocs and Deploy to GitHub Pages
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
strategy:
matrix:
# Use these Python versions
python: [
3.11.1, # Current latest Python
]
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Show Python version
run: python --version
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build
run: |
mkdocs build
- name: Deploy to GitHub Pages
run: |
mkdocs gh-deploy --force