forked from dendronhq/dendron-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
amplify.yml
26 lines (26 loc) · 873 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
26
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 && yarn) || (echo 'init Dendron Next' && yarn 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...' && yarn dendron --version"
- "echo 'build and export...' && yarn dendron publish export"
artifacts:
baseDirectory: .next/out
files:
- '**/*'
cache:
paths:
- node_modules/**/*
- .next/node_modules/**/*
- .next/.next/**/*
- .next/.git/**/*