File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1414 - name : Checkout Branch
1515 uses : actions/checkout@v2
1616
17+ - name : Set Base Url
18+ run : |
19+ BRANCH=$(echo ${GITHUB_REF} | sed -e 's/refs\/heads\///')
20+ BEFORE=base: ''
21+ if [[ $BRANCH == ver/* ]]; then
22+ AFTER=$(echo $BRANCH | sed 's|^ver/||')
23+ else
24+ AFTER=base: ''
25+ fi
26+ sed -i "s/${BEFORE}/${AFTER}/g" "./docs/.vitepress/config.mts"
27+
1728 - name : Setup Node.js
1829 uses : actions/setup-node@v2
1930 with :
Original file line number Diff line number Diff line change 66 types : [completed]
77
88jobs :
9- on-success :
9+ Deploy :
1010 runs-on : ubuntu-latest
1111 if : ${{ github.event.workflow_run.conclusion == 'success' }}
1212
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ const vitepressOptions: UserConfig = {
2727 description : "Docs of CommandAPI" ,
2828 cleanUrls : true ,
2929 metaChunk : true ,
30- base : '' , // place to put the version
30+ base : '' , // do not change this line
3131 ignoreDeadLinks : true , // TODO remove when all things are done
3232 rewrites : {
3333 'en/:rest*' : ':rest*'
You can’t perform that action at this time.
0 commit comments