File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : ci
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+ - ' release-*'
8+ types :
9+ - opened
10+ - reopened
11+ - synchronize
12+ - closed
13+
14+ permissions :
15+ contents : write
16+ pull-requests : write
17+
18+ concurrency :
19+ group : pages-preview-${{ github.event.pull_request.number }}
20+ cancel-in-progress : false
21+
22+ jobs :
23+ build :
24+ runs-on : ubuntu-latest
25+ steps :
26+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
27+ with :
28+ fetch-depth : 0
29+ - uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
30+ with :
31+ node-version : 24
32+ cache : npm
33+
34+ - id : configure
35+ uses : actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6
36+
37+ - id : set-version
38+ name : Set documentation version
39+ run : echo "version=" >> $GITHUB_OUTPUT
40+
41+ - run : npm ci
42+ - run : npm run build
43+ env :
44+ DOCS_VERSION : ${{ steps.set-version.outputs.version }}
45+ PAGES_BASE : ${{ format('pr-preview/pr-{0}', github.event.pull_request.number) }}
46+
47+ - uses : rossjrw/pr-preview-action@ffa7509e91a3ec8dfc2e5536c4d5c1acdf7a6de9 # v1
48+ if : ${{ !github.event.pull_request.head.repo.fork }}
49+ with :
50+ source-dir : .vitepress/dist
Load diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : release
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - ' release-*'
8+ workflow_dispatch :
9+
10+ permissions :
11+ contents : write
12+
13+ concurrency :
14+ group : pages-${{ github.ref_name }}
15+ cancel-in-progress : false
16+
17+ jobs :
18+ build :
19+ runs-on : ubuntu-latest
20+ steps :
21+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
22+ with :
23+ fetch-depth : 0
24+ - uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
25+ with :
26+ node-version : 24
27+ cache : npm
28+
29+ - id : configure
30+ uses : actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6
31+
32+ - id : set-version
33+ name : Set documentation version
34+ run : |
35+ if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
36+ echo "version=main" >> $GITHUB_OUTPUT
37+ elif [[ "${{ github.ref }}" == refs/heads/release-* ]]; then
38+ echo "version=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
39+ else
40+ echo "version=" >> $GITHUB_OUTPUT
41+ fi
42+
43+ - run : npm ci
44+ - run : npm run build
45+ env :
46+ DOCS_VERSION : ${{ steps.set-version.outputs.version }}
47+ PAGES_BASE : ' '
48+
49+ - uses : JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # v4
50+ if : ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-') }}
51+ with :
52+ folder : .vitepress/dist
53+ branch : gh-pages
54+ target-folder : ${{ steps.set-version.outputs.version }}
55+ clean-exclude : pr-preview
56+ force : false
57+
58+ - uses : JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # v4
59+ if : ${{ github.ref == 'refs/heads/main' }}
60+ with :
61+ folder : .
62+ branch : gh-pages
63+ target-folder : .
64+ clean : false
65+ clean-exclude : |
66+ pr-preview
67+ main
68+ release-*
69+ force : false
70+ include : |
71+ index.html
72+ llms.txt
You can’t perform that action at this time.
0 commit comments