Skip to content

Commit cf868d4

Browse files
authored
Added auto deploy preview for exampleSite (#255)
* Action: Added preview to exampleSite * Action: Remove unneeded code
1 parent d9def24 commit cf868d4

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/build-push.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: build preview
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
pull_request:
8+
branches:
9+
- "*"
10+
11+
env:
12+
REPO_OWNER: "nginx"
13+
REPO_NAME: "documentation"
14+
15+
jobs:
16+
deploy-example-site:
17+
uses: nginxinc/docs-actions/.github/workflows/docs-build-push.yml@9c59fab05a8131f4d691ba6ea2b6a119f3ef832a # v1.0.7
18+
with:
19+
production_url_path: "/nginx-hugo-theme"
20+
preview_url_path: "/previews/nginx-hugo-theme"
21+
docs_source_path: "public"
22+
docs_build_path: "./exampleSite"
23+
doc_type: "hugo"
24+
environment: "preview"
25+
force_hugo_theme_version: ""
26+
auto_deploy_branch: "main"
27+
auto_deploy_env: "prod"
28+
secrets:
29+
AZURE_CREDENTIALS: ${{secrets.AZURE_CREDENTIALS_DOCS}}
30+
AZURE_KEY_VAULT: ${{secrets.AZURE_KEY_VAULT_DOCS}}

0 commit comments

Comments
 (0)