File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed
Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Documentation
2+
3+ on :
4+ push :
5+ branches :
6+ - gh-pages
7+ paths :
8+ - ' docs/**'
9+ - ' mkdocs.yml'
10+ - ' .github/workflows/deploy-docs.yml'
11+ workflow_dispatch :
12+
13+ permissions :
14+ contents : write
15+
16+ jobs :
17+ deploy :
18+ name : Deploy docs to GitHub Pages
19+ runs-on : ubuntu-latest
20+
21+ steps :
22+ - name : Checkout gh-pages branch
23+ uses : actions/checkout@v4
24+ with :
25+ fetch-depth : 0
26+ ref : gh-pages
27+
28+ - name : Set up Python
29+ uses : actions/setup-python@v5
30+ with :
31+ python-version : ' 3.12'
32+
33+ - name : Cache dependencies
34+ uses : actions/cache@v4
35+ with :
36+ path : ~/.cache/pip
37+ key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
38+ restore-keys : |
39+ ${{ runner.os }}-pip-
40+
41+ - name : Install MkDocs and dependencies
42+ run : |
43+ pip install mkdocs-material mkdocs-minify-plugin
44+
45+ - name : Build and deploy documentation
46+ run : |
47+ mkdocs gh-deploy --force --clean --verbose
48+ env :
49+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
50+
51+ - name : Summary
52+ run : |
53+ echo "✅ Documentation deployed successfully!" >> $GITHUB_STEP_SUMMARY
54+ echo "📚 View at: https://superagenticai.github.io/dspy-code/" >> $GITHUB_STEP_SUMMARY
55+
You can’t perform that action at this time.
0 commit comments