Make static data accessible via GitLab pages

This commit is contained in:
Kevin Röbert 2019-11-15 21:43:58 +01:00
parent 80ebc5bffa
commit b016226750

View File

@ -9,18 +9,6 @@ stages:
- build - build
- deploy - 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: build firefox:
stage: build stage: build
script: script:
@ -52,8 +40,13 @@ pages:
- mkdir public - mkdir public
- mv GitLabPages/* public/ - mv GitLabPages/* public/
- cp img/clearurls.svg public/clearurls.svg - 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: artifacts:
paths: paths:
- public - public
only: - rules.min.hash
- master - data.minify.json
- rules.minify.hash