-
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (33 loc) · 1.16 KB
/
deploy.yml
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
name: Deploy Computer Vision UseCases Docs
# Trigger the workflow on push to specific files
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# Step 1: Check out the repository
- name: Checkout Code
uses: actions/checkout@v3
# Step 2: Set up Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9' # Compatible Python version for MkDocs
# Step 3: Install dependencies
- name: Install MkDocs and Dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs-material mkdocs-macros-plugin
# Step 4: Build the Docs
- name: Build MkDocs Site
run: mkdocs build # This generates the site into the 'site/' directory
# Step 5: Deploy Docs
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.PAT_TOKEN }} # Use your PAT from secrets
publish_dir: ./site # The default directory for MkDocs build
publish_branch: computer-vision-use-cases # GitHub Pages will host from the 'gh-pages' branch