You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

34 lines
448 B

image: node:latest
stages:
- build
- test
- deploy
build:
stage: build
script:
- yarn
- yarn generate
artifacts:
paths:
- dist/
only:
- master
test:
stage: test
script:
- yarn
- yarn build
- yarn test
only:
- merge_requests
deploy:
stage: deploy
script:
- npm -g install cloudron-surfer
- surfer put --token $SURFER_KEY --server $SURFER_DOMAIN dist/* /
only:
- master