Skip to content

Commit 4fa38d2

Browse files
committed
1 parent 798be62 commit 4fa38d2

File tree

5 files changed

+47
-10
lines changed

5 files changed

+47
-10
lines changed

.github/workflows/materials.yml renamed to .github/workflows/deploy2ghpages.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
name: Deploy Materials to Github Pages
22
on:
33
push:
4-
branches:
5-
- main
4+
paths:
5+
- docs/**
6+
- snippets/**
7+
- overrides/**
8+
- mkdocs.yml
9+
- .github/workflows/deploy2ghpages.yml
610
permissions:
711
contents: write
812
jobs:

.github/workflows/deploy2vercel.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Deploy Documentation
2+
3+
on:
4+
push:
5+
paths:
6+
- docs/**
7+
- snippets/**
8+
- overrides/**
9+
- mkdocs.yml
10+
- requirements.txt
11+
- .github/workflows/deploy2vercel.yml
12+
13+
workflow_dispatch:
14+
15+
jobs:
16+
deploy:
17+
name: Deploy Materials to Vercel
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout Repository
21+
uses: actions/checkout@v4
22+
23+
- name: Set Up Python
24+
uses: actions/setup-python@v5
25+
26+
- name: Install Dependencies
27+
run: pip install -r requirements.txt
28+
29+
- name: Build Documentation
30+
run: mkdocs build
31+
32+
- name: Deploy to Vercel
33+
uses: npx vercel --token ${{ secrets.VERCEL_TOKEN }}
34+
working-directory: site
35+
env:
36+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
37+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ Thumbs.db
2525
# Logs and databases
2626
*.log
2727
*.sqlite3
28+
.vercel

docs/vercel.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"trailingSlash": true
3+
}

vercel.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)