feat: add preview deploys with netlify
Some checks failed
continuous-integration/drone/pr Build is failing
Some checks failed
continuous-integration/drone/pr Build is failing
This commit is contained in:
parent
1cef4f6e0b
commit
d894f6c3c9
13
.drone.yml
13
.drone.yml
|
@ -1,8 +1,6 @@
|
|||
kind: pipeline
|
||||
name: build
|
||||
|
||||
# TODO: update translations only nightly
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
include:
|
||||
|
@ -138,6 +136,17 @@ steps:
|
|||
- failure
|
||||
- success
|
||||
|
||||
- name: deploy-preview
|
||||
image: node:16
|
||||
pull: true
|
||||
environment:
|
||||
NETLIFY_AUTH_TOKEN:
|
||||
from_secret: netlify_auth_token
|
||||
commands:
|
||||
- netlify deploy
|
||||
depends_on:
|
||||
- build-prod
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: release-latest
|
||||
|
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -26,3 +26,6 @@ stats.html
|
|||
# Test files
|
||||
cypress/screenshots
|
||||
cypress/videos
|
||||
|
||||
# Local Netlify folder
|
||||
.netlify
|
||||
|
|
3
netlify.toml
Normal file
3
netlify.toml
Normal file
|
@ -0,0 +1,3 @@
|
|||
[build]
|
||||
command = "yarn build"
|
||||
publish = "dist"
|
|
@ -70,6 +70,7 @@
|
|||
"express": "4.17.1",
|
||||
"faker": "5.5.3",
|
||||
"jest": "27.3.1",
|
||||
"netlify-cli": "^6.14.19",
|
||||
"postcss": "8.3.11",
|
||||
"rollup": "2.59.0",
|
||||
"rollup-plugin-visualizer": "5.5.2",
|
||||
|
|
Reference in New Issue
Block a user