forked from neurodata/neurodata.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec_deploy.yml
39 lines (38 loc) · 1.37 KB
/
buildspec_deploy.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
27
28
29
30
31
32
33
34
35
36
37
38
39
version: 0.2
phases:
install:
commands:
- echo Installing grow
- pip install grow==1.0.4 pyyaml==5.3.1 bibtexparser==1.2.0 jinja2==2.11.3
#- echo Installing tailwind
#- apt install curl
#- curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
#- apt-get install -y aptitude
#- apt-get -y install nodejs
#- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
#- echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- apt-get update
- apt-get install -y texlive-full
- apt-get install yarn
- yarn install
build:
commands:
- export LC_ALL=C.UTF-8
- cd content/bibs/tex
- pdflatex jovo_cv_SOM.tex
- cd ..
- biber tex/jovo_cv_SOM
# - pdflatex jovo_cv_SOM.tex
# - pdflatex jovo_cv_SOM.tex
- cd ../..
# 3/10/2023 dependency conflict resolution
- pip install markupsafe==2.0.1
- grow install
- grow build --deployment default
- mkdir build/bib_files
post_build:
commands:
- aws s3 sync --delete --cache-control "max-age=10800" build/ "s3://nd-website-deploy"
- aws s3 cp robots-prod.txt "s3://nd-website-deploy"
- aws configure set preview.cloudfront true
- aws cloudfront create-invalidation --distribution-id E1XLAJR2ZIAY9Y --paths '/*'