Make static data accessible via GitLab pages
This commit is contained in:
parent
80ebc5bffa
commit
b016226750
|
@ -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
|
||||
- rules.min.hash
|
||||
- data.minify.json
|
||||
- rules.minify.hash
|
||||
|
|
Loading…
Reference in New Issue
Block a user