Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only trigger docs build and publish when docs changed #22968

Merged
merged 10 commits into from
Feb 20, 2023
25 changes: 21 additions & 4 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ trigger:
- push
- tag
- pull_request
paths:
exclude:
- docs/**

volumes:
- name: deps
Expand Down Expand Up @@ -112,7 +115,6 @@ steps:
image: golang:1.19 # this step is kept as the lowest version of golang that we support
pull: always
environment:
GO111MODULE: on
GOPROXY: https://goproxy.io
commands:
- go build -o gitea_no_gcc # test if build succeeds without the sqlite tag
Expand All @@ -124,7 +126,6 @@ steps:
- name: build-backend-arm64
image: golang:1.20
environment:
GO111MODULE: on
GOPROXY: https://goproxy.io
GOOS: linux
GOARCH: arm64
Expand All @@ -140,7 +141,6 @@ steps:
- name: build-backend-windows
image: golang:1.20
environment:
GO111MODULE: on
GOPROXY: https://goproxy.io
GOOS: windows
GOARCH: amd64
Expand All @@ -155,7 +155,6 @@ steps:
- name: build-backend-386
image: golang:1.20
environment:
GO111MODULE: on
GOPROXY: https://goproxy.io
GOOS: linux
GOARCH: 386
Expand Down Expand Up @@ -183,6 +182,9 @@ trigger:
- push
- tag
- pull_request
paths:
exclude:
- docs/**

volumes:
- name: deps
Expand Down Expand Up @@ -410,6 +412,9 @@ trigger:
- push
- tag
- pull_request
paths:
exclude:
- docs/**

volumes:
- name: deps
Expand Down Expand Up @@ -517,6 +522,9 @@ depends_on:
trigger:
event:
- pull_request
paths:
exclude:
- docs/**

volumes:
- name: deps
Expand Down Expand Up @@ -696,6 +704,9 @@ trigger:
- "release/*"
event:
- push
paths:
exclude:
- docs/**

depends_on:
- testing-amd64
Expand Down Expand Up @@ -947,6 +958,9 @@ trigger:
- push
- tag
- pull_request
paths:
include:
- docs/**

steps:
- name: build-docs
Expand Down Expand Up @@ -1176,6 +1190,9 @@ depends_on:
trigger:
ref:
- "refs/pull/**"
paths:
exclude:
- docs/**

steps:
- name: dryrun
Expand Down