Add event trigger #37
2 changed files with 10 additions and 12 deletions
|
@ -1,9 +1,9 @@
|
|||
---
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
branch: main
|
||||
|
||||
- push
|
||||
- pull_request
|
||||
branch: main
|
||||
steps:
|
||||
- name: build
|
||||
image: alpine:3.17.2
|
||||
|
@ -11,7 +11,6 @@ steps:
|
|||
- apk update
|
||||
- apk add zola
|
||||
- zola build
|
||||
|
||||
- name: upload
|
||||
image: plugins/s3
|
||||
settings:
|
||||
|
@ -24,4 +23,4 @@ steps:
|
|||
from_secret: aws_secret_access_key
|
||||
source: public/**/*
|
||||
target: /
|
||||
strip_prefix: public/
|
||||
strip_prefix: public/
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
---
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
branch: main
|
||||
|
||||
- push
|
||||
- pull_request
|
||||
branch: preprod
|
||||
steps:
|
||||
- name: build
|
||||
image: alpine:3.17.2
|
||||
|
@ -11,8 +11,7 @@ steps:
|
|||
- apk update
|
||||
- apk add zola
|
||||
- zola build
|
||||
|
||||
- name: upload
|
||||
- name: upload
|
||||
when:
|
||||
branch:
|
||||
- preprod
|
||||
|
|
Loading…
Reference in a new issue