We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent baee468 commit a316ec5Copy full SHA for a316ec5
.github/workflows/release-build.yml
@@ -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