community/.gitlab-ci.yml

28 lines
908 B
YAML

---
variables:
LEKTOR_BUILD_FLAGS: scss generate-cw-fractions
SITE_URL: community.torproject.org
STAGING_URL: community.staging.torproject.net
TRANSLATION_BRANCH: communitytpo-contentspot
include:
- project: tpo/tpa/ci-templates
file:
- lektor.yml
- static-shim-deploy.yml
# retrieve latest tpo/community/{onion-services/ecosystem,policies} build
# artifacts and place files under public/{onion-services/ecosystem,policies}
# such that they are deployed to community.tpo/{onion-services/ecosystem,policies}
.lektor:
scripts:
post-build:
- apt install -yq unzip
# policies
- mkdir public/policies
- wget -q https://gitlab.torproject.org/api/v4/projects/1972/jobs/artifacts/main/download\?job\=build -O policies.zip
- unzip policies.zip -d public/policies
- mv public/policies/public/* public/policies
- rmdir public/policies/public