summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--amplify.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/amplify.yml b/amplify.yml
new file mode 100644
index 0000000..8900638
--- /dev/null
+++ b/amplify.yml
@@ -0,0 +1,27 @@
+version: 1
+applications:
+ - frontend:
+ phases:
+ preBuild:
+ commands:
+ - export GH_ACCESS_TOKEN=$(aws ssm get-parameter --name /amplify/shared/d224keb5xu0spt/GH_ACCESS_TOKEN --query Parameter.Value --output text --with-decryption)
+ - sudo yum install -y https://dl.fedoraproject.org/pub/epel/9/Everything/x86_64/Packages/c/cmark-0.29.0-4.el9.x86_64.rpm
+ - npm install -g sass@1.32.8
+ - python3 -m venv .venv
+ - source .venv/bin/activate
+ - pip install pygithub jinja2
+ - wget https://github.com/PataphysicalSociety/soupault/releases/download/4.10.0/soupault-4.10.0-linux-x86_64.tar.gz
+ - tar xvf soupault-4.10.0-linux-x86_64.tar.gz
+ - mv -v ./soupault-4.10.0-linux-x86_64/soupault /usr/bin/
+ build:
+ commands:
+ - source .venv/bin/activate
+ - '[ "$AWS_BRANCH" = "production" ] && export SOUPAULT_OPTS="--profile live" || export SOUPAULT_OPTS="--profile staging"'
+ - make all
+ artifacts:
+ baseDirectory: /build
+ files:
+ - '**/*'
+ cache:
+ paths:
+ - node_modules/**/*