Selaa lähdekoodia

Merge branch '28-bundle-deploy-step-in-ci' into 'master'

Resolve "bundle / deploy step in ci"

Closes #28

See merge request troebs/pycs!22
Eric Tröbs 4 vuotta sitten
vanhempi
commit
1b6885756f
1 muutettua tiedostoa jossa 22 lisäystä ja 0 poistoa
  1. 22 0
      .gitlab-ci.yml

+ 22 - 0
.gitlab-ci.yml

@@ -1,3 +1,9 @@
+stages:
+  - build
+  - test
+  - deploy
+
+
 webui:
   stage: build
   image: node:14
@@ -87,3 +93,19 @@ tests_3.9:
   script:
     - coverage run --source=pycs/ -m unittest discover test/
     - coverage report -m
+
+
+bundle:
+  stage: deploy
+  image: alpine
+  script:
+    - mv webui/dist dist
+    - rm -rf webui
+    - mv dist webui
+  artifacts:
+    expire_in: 30 days
+    paths:
+      - settings.json
+      - app.py
+      - pycs/
+      - webui/