ci: move copy to deploy script

This commit is contained in:
redonkulus 2020-05-16 11:13:24 -07:00
parent 9dc1a9ddcf
commit 2e49130c27
2 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,7 @@
git config --global user.name "${GH_NAME}" git config --global user.name "${GH_NAME}"
git config --global user.email "${GH_EMAIL}" git config --global user.email "${GH_EMAIL}"
echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
cp -rf ./build/ ./static/css/pure/
cd site cd site
npm install npm install
GIT_USER="${GH_NAME}" npm run deploy GIT_USER="${GH_NAME}" npm run deploy

View File

@ -4,11 +4,9 @@
"private": true, "private": true,
"scripts": { "scripts": {
"build": "docusaurus build", "build": "docusaurus build",
"copy:pure": "cp -rf ../build/ ./static/css/pure/",
"deploy": "docusaurus deploy", "deploy": "docusaurus deploy",
"prebuild": "npm run copy:pure",
"predeploy": "npm run build", "predeploy": "npm run build",
"prestart": "npm run copy:pure", "prestart": "cp -rf ../build/ ./static/css/pure/",
"start": "docusaurus start", "start": "docusaurus start",
"swizzle": "docusaurus swizzle" "swizzle": "docusaurus swizzle"
}, },