Skip to content

Commit e327c3d

Browse files
committed
ci: add push-to-docs input for GCP documentation deployment
1 parent 4473ad9 commit e327c3d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ on:
3535
required: false
3636
default: false
3737
type: boolean
38+
push-to-docs:
39+
description: 'Push docs to internal GCP'
40+
required: false
41+
default: false
42+
type: boolean
3843
version:
3944
description: 'Version'
4045
required: false
@@ -152,7 +157,7 @@ jobs:
152157
153158
upload-docs:
154159
name: Upload docs
155-
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'
160+
if: ${{ github.event.inputs.push-to-docs == 'true' }}
156161
permissions:
157162
id-token: write
158163
contents: read

0 commit comments

Comments
 (0)