File tree Expand file tree Collapse file tree 4 files changed +68
-118
lines changed Expand file tree Collapse file tree 4 files changed +68
-118
lines changed Original file line number Diff line number Diff line change 1+ # .github/workflows/deploy.yml
2+ name : Deploy
3+ on :
4+ push :
5+ branches :
6+ - main
7+ jobs :
8+ deploy :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+
13+ - name : Setup PDM
14+ uses : pdm-project/setup-pdm@v4
15+ with :
16+ python-version : 3.12
17+ cache : true
18+
19+ - name : Install dependencies
20+ run : pdm install
21+
22+ - name : Build docs
23+ run : pdm docs
24+
25+ - uses : JamesIves/github-pages-deploy-action@v4
26+ with :
27+ folder : .
28+ branch : gh-pages
29+ clean-exclude : pr-preview
30+ force : false
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ # .github/workflows/preview.yml
2+ name : Deploy PR previews
3+ concurrency : preview-${{ github.ref }}
4+ on :
5+ pull_request :
6+ types :
7+ - opened
8+ - reopened
9+ - synchronize
10+ - closed
11+ jobs :
12+ deploy-preview :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ - name : Set base URL for preview if PR
17+ run : echo "DOCS_BASE_URL=https://${{ env.DOMAIN }}/${{ env.PR_PATH}}/" >> $GITHUB_ENV
18+
19+ - name : Setup PDM
20+ uses : pdm-project/setup-pdm@v4
21+ with :
22+ python-version : 3.12
23+ cache : true
24+
25+ - name : Install dependencies
26+ run : pdm install
27+
28+ - name : Build docs
29+ run : pdm docs
30+ if : github.event.action != 'closed'
31+
32+ - uses : rossjrw/pr-preview-action@v1
33+ with :
34+ source-dir : .
35+ preview-branch : gh-pages
36+ umbrella-dir : pr-preview
37+ action : auto
Original file line number Diff line number Diff line change 2121
2222master_doc = "index"
2323
24+
2425# -- General configuration
2526
2627extensions = [
You can’t perform that action at this time.
0 commit comments