mirror of
https://github.com/pure-css/pure.git
synced 2024-11-24 10:44:21 +00:00
ci: move copy to deploy script
This commit is contained in:
parent
9dc1a9ddcf
commit
2e49130c27
@ -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
|
@ -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"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user