Commit 3b68a11f authored by Professor Chaos's avatar Professor Chaos

Update .gitlab-ci.yml

parent 8e2ffcc7
......@@ -3,39 +3,25 @@ image: node:latest
variables:
eid: "jnmekaomnicdcpgdndekkmojfomifjal"
stages:
- install
- test
- build_docs
- pages
- publish
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
install_dependencies:
stage: install
script:
- npm install
artifacts:
paths:
- node_modules/
initialize:
- yarn
run_tests:
stage: test
script: npm test
build_docs:
stage: build_docs
script:
script:
- npm run test
- npm run docs
artifacts:
paths:
- public/*
- public/
only:
- master
publish_docs:
stage: pages
pages:
script:
- echo 'deploying docs...'
artifacts:
......@@ -44,10 +30,13 @@ publish_docs:
only:
- master
publish_cws:
store_publish:
stage: publish
script:
- npm run build
- npx cws-upload $cid $sec $tkn $zip $eid;
artifacts:
paths:
- $zip
only:
- master
- tags
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment