This repository has been archived on 2021-11-08. You can view files and clone it, but cannot push or open issues or pull requests.
svelte-sharg/.drone.yml

46 lines
753 B
YAML
Raw Normal View History

2021-10-14 12:44:51 +02:00
kind: pipeline
type: docker
# Check if the game builds
# If yes, test if everything is nice
# If yes, deploy to vercel
steps:
2021-10-14 12:46:07 +02:00
- name: install
image: node
commands:
- yarn
2021-10-14 12:44:51 +02:00
- name: build-game
image: node
commands:
- yarn build:game
2021-10-14 12:46:07 +02:00
depends_on:
- install
2021-10-14 12:44:51 +02:00
- name: build-pwa
image: node
commands:
- yarn build:pwa
2021-10-14 12:46:07 +02:00
depends_on:
- install
2021-10-14 12:44:51 +02:00
- name: test
image: node
commands:
- yarn test
depends_on:
- build-game
- build-pwa
- name: deploy (production)
image: dockette/vercel
commands:
- vercel -t $VERCEL_TOKEN --scope $VERCEL_SCOPE -c
when:
branch:
- main
- name: deploy (preview)
image: dockette/vercel
commands:
- vercel -t $VERCEL_TOKEN --scope $VERCEL_SCOPE -c
when:
branch:
- "!main"