-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Expand file tree
/
Copy pathamplify.yml
More file actions
61 lines (61 loc) · 1.6 KB
/
Copy pathamplify.yml
File metadata and controls
61 lines (61 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: 1
applications:
- appRoot: website
frontend:
phases:
preBuild:
commands:
- source "${NVM_DIR}/nvm.sh"
- nvm use 24.11.0
- node --version
build:
commands:
- |
if [[ "${AWS_BRANCH}" == "website" ]]; then
make ci-production-build
else
make ci-preview-build
fi
artifacts:
baseDirectory: public
files:
- "**/*"
cache:
paths:
- node_modules/**/*
- appRoot: lib/vector-vrl/web-playground
frontend:
phases:
preBuild:
commands:
- mv ../../../scripts/ensure-wasm-target-installed.sh ./
- chmod +x ./ensure-wasm-target-installed.sh
build:
commands:
- ./ensure-wasm-target-installed.sh && wasm-pack build --target web --out-dir public/pkg
artifacts:
baseDirectory: public
files:
- "**/*"
cache:
paths: []
- appRoot: rust-doc
frontend:
phases:
preBuild:
commands:
- mkdir -p ./public
- bash ../scripts/environment/prepare.sh --modules=rustup,protoc
build:
commands:
- export PATH="$HOME/.local/bin:$PATH"
- make ci-docs-build
- echo "<meta charset=\"UTF-8\" >" > ../target/doc/index.html
- mv ../target/doc ./public
- rm -rf ../target
artifacts:
baseDirectory: public/doc
files:
- "**/*"
cache:
paths: []