Cherry pick v3 documentation ebfaedf0f5f5176b1d161f40b5a46050115588c8 5145cec4b02569aedabb2157e932ff172051f104 #95
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@69843fb5d009e99750e50c23e90c23a899e4637e # v1.0.6 | |
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}} |