From b016226750b07e23c4943a21578dcfe10796099c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20R=C3=B6bert?= Date: Fri, 15 Nov 2019 21:43:58 +0100 Subject: [PATCH] Make static data accessible via GitLab pages --- .gitlab-ci.yml | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5d85978..b67514d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,18 +9,6 @@ stages: - build - deploy -hash rules: - stage: build - script: - - sha256sum data/data.min.json | awk '{print $1}' > rules.min.hash - - node build_tools/minifyDataJSON.js "data/data.min.json" "data.minify.json" - - sha256sum data.minify.json | awk '{print $1}' > rules.minify.hash - artifacts: - paths: - - rules.min.hash - - data.minify.json - - rules.minify.hash - build firefox: stage: build script: @@ -52,8 +40,13 @@ pages: - mkdir public - mv GitLabPages/* public/ - cp img/clearurls.svg public/clearurls.svg + - cp data/data.min.json public/data/data.min.json + - sha256sum public/data/data.min.json | awk '{print $1}' > public/data/rules.min.hash + - node build_tools/minifyDataJSON.js "public/data/data.min.json" "public/data/data.minify.json" + - sha256sum public/data/data.minify.json | awk '{print $1}' > public/data/rules.minify.hash artifacts: paths: - public - only: - - master \ No newline at end of file + - rules.min.hash + - data.minify.json + - rules.minify.hash