Skip to content

Commit a316ec5

Browse files
committed
Workflow: Needs to be adjusted
1 parent baee468 commit a316ec5

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/release-build.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build preview on documentation repo upon release publish
2+
3+
on:
4+
pull_request:
5+
# release:
6+
# types:
7+
# - published
8+
9+
jobs:
10+
trigger-documentation-build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Trigger 'Build and deploy' workflow in 'documentation' repo
14+
run: |
15+
event_type="trigger-preview-build"
16+
environment="preview"
17+
theme_version=""
18+
curl -L \
19+
-X POST \
20+
-H "Accept: application/vnd.github+json" \
21+
-H "X-GitHub-Api-Version: 2022-11-28" \
22+
"https://api.github.com/repos/nginx/documentation/dispatches" \
23+
-d "{"event_type": "$event_type", "client_payload": {"environment": "$environment", "hugo_theme_override": "$theme_version"}}"

0 commit comments

Comments
 (0)