Skip to content

Commit

Permalink
CI: add a workflow to deploy documentation to GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mykolaskrynnyk committed Sep 21, 2024
1 parent 6839901 commit 33b6630
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/material-for-mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Deploy Material for MkDocs documentation to GitHub Pages

env:
AZURE_WEBAPP_NAME: st-undp
PYTHON_VERSION: '3.11'

on:
push:
branches: [ "main" ]
workflow_dispatch:

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Set up Python version
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: 'pip'

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
poetry config virtualenvs.create false
poetry install --only docs
- name: Deploy to GitHub Pages
run: mkdocs gh-deploy --force

0 comments on commit 33b6630

Please sign in to comment.