Ci/promotable builds (#1184)
* ci: don't build our master branch * Add netlify-cli as a dev dependency * ci: trying a sheltered merge flow for promotions * ci: try building with QUICK_BUILD flag * Try using ~/repo prefix in command * ci: make sure netlify command is available * ci: use sudo for global command * Inline personal access token w/ env var * ci: workaround for sudo limitations
This commit is contained in:
parent
ed9e4d6751
commit
55a5f04923
@ -168,6 +168,7 @@ jobs:
|
|||||||
paths:
|
paths:
|
||||||
- platform/viewer/dist
|
- platform/viewer/dist
|
||||||
- netlify.toml
|
- netlify.toml
|
||||||
|
- .netlify
|
||||||
|
|
||||||
DEPLOY_TO_DEV:
|
DEPLOY_TO_DEV:
|
||||||
docker:
|
docker:
|
||||||
@ -179,10 +180,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: ~/repo
|
at: ~/repo
|
||||||
- run: sudo npm install netlify-cli -g
|
- run: cd .netlify && npm install
|
||||||
- run:
|
- run: cd .netlify && npm run deploy
|
||||||
sudo npx netlify deploy --prod --auth $NETLIFY_AUTH_TOKEN --dir
|
|
||||||
platform/viewer/dist
|
|
||||||
|
|
||||||
DEPLOY_TO_STAGING:
|
DEPLOY_TO_STAGING:
|
||||||
docker:
|
docker:
|
||||||
|
|||||||
15
.netlify/package.json
Normal file
15
.netlify/package.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"name": "root",
|
||||||
|
"private": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">=10",
|
||||||
|
"npm": ">=6",
|
||||||
|
"yarn": ">=1.16.0"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"deploy": "netlify deploy --prod --dir ./../platform/viewer/dist"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"netlify-cli": "^2.21.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user