-
Notifications
You must be signed in to change notification settings - Fork 166
30 lines (28 loc) · 1.27 KB
/
co-docs-builder.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Elastic docs
on:
pull_request_target:
# The paths property can be omitted entirely if the repo is mainly used for docs. Leaving it in can result in builds that
# have branch protection checks in place lose the ability to merge because the workflow is not starting. If this property
# is included, please ensure that branch protection checks are disabled for the repo.
paths:
# Preface with your docs dir if you need further specificity (optional)
- 'docs/en/serverless/**.mdx'
- 'docs/en/serverless/**.docnav.json'
- 'docs/en/serverless/**.docapi.json'
- 'docs/en/serverless/**.devdocs.json'
- 'docs/en/serverless/**.jpg'
- 'docs/en/serverless/**.jpeg'
- 'docs/en/serverless/**.svg'
- 'docs/en/serverless/**.png'
- 'docs/en/serverless/**.gif'
types: [closed, opened, synchronize]
jobs:
publish:
uses: elastic/workflows/.github/workflows/docs-elastic-co-publish.yml@main
with:
subdirectory: 'docs/en/serverless/'
secrets:
VERCEL_GITHUB_TOKEN: ${{ secrets.VERCEL_GITHUB_TOKEN_PUBLIC }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN_PUBLIC }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID_PUBLIC }}
VERCEL_PROJECT_ID_DOCS_CO: ${{ secrets.VERCEL_PROJECT_ID_DOCS_CO_PUBLIC }}