chore: test build
This commit is contained in:
parent
5b8da8f2c9
commit
5f5aa3abec
2 changed files with 28 additions and 22 deletions
26
.build.yml
26
.build.yml
|
@ -1,24 +1,6 @@
|
||||||
image: archlinux
|
image: archlinux
|
||||||
packages:
|
|
||||||
- nodejs
|
|
||||||
- npm
|
|
||||||
secrets:
|
|
||||||
- 46f739e5-4538-45dd-a79f-bf173b7a2ed9
|
|
||||||
environment:
|
|
||||||
NETLIFY_SITE_ID: 390b392a-a898-491b-8500-79aa30f724d6
|
|
||||||
tasks:
|
tasks:
|
||||||
- setup: |
|
- say-hello: |
|
||||||
cd "mcfly/site"
|
echo hello
|
||||||
npm i
|
- say-world: |
|
||||||
- build: |
|
echo world
|
||||||
cd "mcfly/site"
|
|
||||||
NODE_ENV=production npm run build
|
|
||||||
- deploy: |
|
|
||||||
cd "mcfly/site"
|
|
||||||
{
|
|
||||||
set +x
|
|
||||||
. ~/.buildsecrets
|
|
||||||
set -x
|
|
||||||
}
|
|
||||||
export NETLIFY_AUTH_TOKEN
|
|
||||||
npm run deploy
|
|
||||||
|
|
24
.build.yml.bkup
Normal file
24
.build.yml.bkup
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
image: archlinux
|
||||||
|
packages:
|
||||||
|
- nodejs
|
||||||
|
- npm
|
||||||
|
secrets:
|
||||||
|
- 46f739e5-4538-45dd-a79f-bf173b7a2ed9
|
||||||
|
environment:
|
||||||
|
NETLIFY_SITE_ID: 390b392a-a898-491b-8500-79aa30f724d6
|
||||||
|
tasks:
|
||||||
|
- setup: |
|
||||||
|
cd mcfly/site
|
||||||
|
npm i
|
||||||
|
- build: |
|
||||||
|
cd mcfly/site
|
||||||
|
NODE_ENV=production npm run build
|
||||||
|
- deploy: |
|
||||||
|
cd mcfly/site
|
||||||
|
{
|
||||||
|
set +x
|
||||||
|
. ~/.buildsecrets
|
||||||
|
set -x
|
||||||
|
}
|
||||||
|
export NETLIFY_AUTH_TOKEN
|
||||||
|
npm run deploy
|
Loading…
Reference in a new issue