Skip to content

Update documentation Makefile and README #34

Update documentation Makefile and README

Update documentation Makefile and README #34

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/**
permissions:
contents: read
jobs:
call-docs-build-push:
uses: nginxinc/docs-actions/.github/workflows/docs-build-push.yml@a733e84a262f8d5d885bfc8eac80bc85928da322 # v1.0.3
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}}
secrets:
AZURE_CREDENTIALS: ${{secrets.AZURE_CREDENTIALS_DOCS}}
AZURE_KEY_VAULT: ${{secrets.AZURE_KEY_VAULT_DOCS}}