-
Notifications
You must be signed in to change notification settings - Fork 10
/
buildspec.yml
42 lines (39 loc) · 966 Bytes
/
buildspec.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
40
41
version: 0.2
#env:
#variables:
# key: "value"
# key: "value"
#parameter-store:
# key: "value"
# key: "value"
phases:
install:
commands:
- apt-get update -y
- apt-get install -y groff git-core ghostscript
- wget -q https://github.com/jgm/pandoc/releases/download/2.3.1/pandoc-2.3.1-1-amd64.deb
- sudo dpkg -i pandoc-2.3.1-1-amd64.deb
pre_build:
commands:
- ls -la
- ls -R
build:
commands:
- git clone https://github.com/voteflux/flux && cd flux && /bin/bash scripts/convertMarkdown.sh
post_build:
commands:
- ls -R
- |
DATE=$(cat ./theDate)
echo "$DATE"
if [ "$CODEBUILD_BUILD_SUCCEEDING" = "1" ]; then
cd _dist
aws s3 sync . s3://flux-constitutions/$DATE
aws s3 sync . s3://flux-constitutions/_latest --delete
fi
artifacts:
files:
- _dist/*
cache:
paths:
- /var/cache/apt/archives