This commit is contained in:
Rik Berkelder 2021-01-23 16:32:03 +01:00
parent 03325a1c63
commit c31afdb3ce
2 changed files with 36 additions and 1 deletions

35
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,35 @@
image: node:12.13
cache:
paths:
- lib/
- docs/
stages:
- build
- deploy
- clean
build:
stage: build
only:
- master
script:
- npm install
- npm run build
docs:
stage: deploy
script:
- mkdir .public
- cp -r ./docs/* .public
- mv .public public
artifacts:
paths:
- public
clean:
stage: clean
script:
- docker rm -v $(docker container ls -q --all --filter=name="runner-*" --filter=status=exited) || true
- docker rmi $(docker images -f"dangling=true" -q) || true

View file

@ -26,7 +26,7 @@
"author": "Rik Berkelder <mail@riksolo.com>",
"license": "MIT",
"dependencies": {
"osc-min": "^1.1.2",
"osc-min": "^1.1.2"
},
"devDependencies": {
"rimraf": "^3.0.2",