Add branch checking

This commit is contained in:
Liam 2022-10-26 21:20:32 +01:00
parent 566aebd8a4
commit ea241be07b

View File

@ -4,6 +4,25 @@ name: default
ports: [3001]
steps:
# Other branches
- name: install depends
image: node:18
commands:
- npm install
when:
branch:
exclude:
- master
- name: test
image: node:18
commands:
- npm run lint
when:
branch:
exclude:
- master
# Main branches
- name: docker
image: plugins/docker
settings:
@ -13,3 +32,6 @@ steps:
from_secret: dockerhub_password
repo: fascinated/beatsaber-overlay
tags: latest
when:
branch:
- main