forked from himanshu2406/Algo.Py
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 1.04 KB
/
deploy.yml
File metadata and controls
43 lines (34 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Deploy MkDocs to GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install uv (Fast Dependency Manager)
run: |
python -m pip install --upgrade pip
pip install uv
- name: Install MkDocs and Dependencies
run: |
uv pip install --system mkdocs==1.6.1
uv pip install --system mkdocs-material==9.6.5
uv pip install --system mkdocstrings==0.28.2
uv pip install --system mkdocstrings-python==1.16.2
uv pip install --system mkdocs-autorefs==1.4.0
- name: Install Imaging Dependencies (Fix for "social" Plugin)
run: |
uv pip install --system "mkdocs-material[imaging]"
- name: Deploy to GitHub Pages
run: mkdocs gh-deploy --force