-
Notifications
You must be signed in to change notification settings - Fork 74
44 lines (42 loc) · 1.1 KB
/
docs-build-push.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Build and deploy (docs)
on:
workflow_dispatch:
inputs:
environment:
description: 'Environment to deploy to'
required: false
default: 'preview'
type: choice
options:
- preview
- dev
- staging
- prod
pull_request:
branches:
- "*"
paths:
- site/**
push:
branches:
- "main"
permissions:
contents: read
jobs:
call-docs-build-push:
uses: nginxinc/docs-actions/.github/workflows/docs-build-push.yml@f88844356d32c94be057b60033b3a933bebabf77 # v1.0.5
permissions:
pull-requests: write # needed to write preview url comment to PR
contents: read
with:
production_url_path: "/nginx-agent"
preview_url_path: "/previews/nginx-agent"
docs_source_path: "public/nginx-agent"
docs_build_path: "./site"
doc_type: "hugo"
environment: ${{inputs.environment}}
auto_deploy_branch: "main"
auto_deploy_env: "staging"
secrets:
AZURE_CREDENTIALS: ${{secrets.AZURE_CREDENTIALS_DOCS}}
AZURE_KEY_VAULT: ${{secrets.AZURE_KEY_VAULT_DOCS}}