Browse Source

add gitlab pages config

master
hoschi-it 3 years ago
parent
commit
70139bea63
  1. 22
      .gitlab-ci.yml

22
.gitlab-ci.yml

@ -0,0 +1,22 @@
image: node:latest
before_script:
- npm i minify -g
pages:
stage: deploy
script:
- rm public -Rf
- mkdir -p public
- minify code.js > public/code.js
- minify functions.js > public/functions.js
- minify index.html > public/index.html
- minify style.css > public/style.css
artifacts:
paths:
- public
only:
- master
Loading…
Cancel
Save