forked from dendronhq/dendron-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathamplify.yml
25 lines (25 loc) · 849 Bytes
/
amplify.yml
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
version: 1
frontend:
phases:
preBuild:
commands:
- nvm install 14
- nvm use 14
- yarn
- yarn add @dendronhq/dendron-cli@latest
build:
commands:
- nvm use 14
- "(test -d .next) && (echo 'updating Dendron Next...' && cd .next && git reset --hard && git clean -f && git pull && npm install) || (echo 'init Dendron Next' && npx dendron publish init)"
- "(test -d .next/.next) && (rm -rf .next/.next && echo 'delete Next.js cache' && cd ..) || echo 'no Next.js cache found'"
- "echo 'version check...' && npx dendron --version"
- "echo 'build and export...' && npx dendron publish export"
artifacts:
baseDirectory: .next/out
files:
- '**/*'
cache:
paths:
- node_modules/**/*
- .next/node_modules/**/*
- .next/.git/**/*