tpo/.gitlab-ci.yml
kez d250c29b28 Add lektor-scss
See tpo/web/lego#55
2023-01-11 15:27:52 -08:00

21 lines
689 B
YAML

---
variables:
LEKTOR_BUILD_FLAGS: scss
SITE_URL: www.torproject.org
STAGING_URL: www.staging.torproject.net
TRANSLATION_BRANCH: tpo-web
LEKTOR_PARTIAL_BUILD: 1
include:
- project: tpo/tpa/ci-templates
file:
- lektor.yml
- static-shim-deploy.yml
# for review apps (branches), move some press content out of the way to decrease
# the build time by a factor of at least 4x -- keep only the last 1 year of
# press articles
.setup-lektor-partial-build:
- export CUTOFF=$(date -d "$(date +%Y-%m-%d) -365 day" +%Y-%m-%d)
- awk '{if($1=="pub_date:" && $2 < ENVIRON["CUTOFF"])print FILENAME}' content/press/*/contents.lr | while read -d $'\n' f; do rm "$f"; done