diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 655c74178a96a381a33311970147051470159ecc..f126cde3b7d1c541702f58f1607ff9df6eb94b62 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,9 +1,25 @@
 image: durcheinander/pack-build:1.1.0
 
 stages:
+- prepare
 - build
 - release
 
+prepare:
+  stage: prepare
+  rules:
+    - if: $CI_PIPELINE_SOURCE == "schedule"
+      when: never
+    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
+    - if: $CI_COMMIT_TAG
+    - exists:
+      - resources
+  script:
+    - to-static-jsonp --fn hd resources/* -o .
+  artifacts:
+    paths:
+      - '*.js'
+
 build:
   image: durcheinander/export-apkgs:2.0.0
   stage: build