mirror of
https://github.com/tcgdex/compiler.git
synced 2025-06-12 18:49:19 +00:00
Initial Compiler
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
39
.drone.yml
Normal file
39
.drone.yml
Normal file
@ -0,0 +1,39 @@
|
||||
kind: pipeline
|
||||
name: default
|
||||
type: docker
|
||||
|
||||
steps:
|
||||
- name: submodules
|
||||
image: alpine/git
|
||||
commands:
|
||||
- git submodule update --init --recursive
|
||||
- git submodule foreach git checkout master
|
||||
- git submodule foreach git pull origin master
|
||||
|
||||
- name: prepare
|
||||
image: node:alpine
|
||||
commands:
|
||||
- apk -q add yarn
|
||||
- yarn
|
||||
- yarn cards:compile
|
||||
|
||||
- name: compile
|
||||
image: node:alpine
|
||||
commands:
|
||||
- apk -q add yarn
|
||||
- yarn gen:all
|
||||
|
||||
- name: push
|
||||
image: alpine/git
|
||||
commands:
|
||||
- cd dist
|
||||
- git config --global user.email "$PUSH_EMAIL"
|
||||
- git config --global user.name "$PUSH_NAME"
|
||||
- git add .
|
||||
- git commit -m "Updated API"
|
||||
- git push -u origin master
|
||||
environment:
|
||||
PUSH_EMAIL:
|
||||
from_secret: PUSH_EMAIL
|
||||
PUSH_NAME:
|
||||
from_secret: PUSH_NAME
|
Reference in New Issue
Block a user