ci: fix step condition, only run publish on push

event to main branch

https://docs.drone.io/pipeline/docker/syntax/conditions/#by-event
This commit is contained in:
teutat3s 2023-05-19 17:25:43 +02:00
parent 6b6214a85d
commit 389ede230f
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -5,7 +5,7 @@ name: default
steps: steps:
- name: build - name: build
when: when:
events: event:
- push - push
- pull_request - pull_request
image: denoland/deno:alpine-1.29.4 image: denoland/deno:alpine-1.29.4
@ -14,7 +14,7 @@ steps:
- name: publish - name: publish
when: when:
events: event:
- push - push
branch: branch:
- main - main