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:
parent
6b6214a85d
commit
389ede230f
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue