I want to build a blog with vuepress, and want to publish it to my server and github page. Like www.codingyang.com and https://github.com/Rackar/codingyang, but in the config.js, 'base' will be set to '/' and '/codingyang', to make the url resource correct.
Can I change different shell to build with different congfig.base ?
"docs:build": "vuepress build docs && node utils/bd_hm.js",
"docs:build:gitpage": "vuepress build docs --codingyang && node utils/bd_hm.js",
"docs:push:gitpage": "push-dir --dir=docs/.vuepress/dist --branch=gh-pages"
like use 'docs:build' to build dist/ with base = '/' ,and copy that to my server.
use 'docs:build:gitpage' && 'docs:push:gitpage' to set base = 'codingyang ', and use them in github Actions and github Pages for other developers?
Can I use additional parameters or determine the environment scripts to do such thing?