Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/docs-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,20 @@ jobs:
hugo-version: ${{env.HUGO_VERSION}}
extended: true

- name: Add hugo build info
if: inputs.doc_type == 'hugo'
run: |
timestamp=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
cat <<EOF > buildInfo.json
{
"nginxHugoThemeVersion": "$THEME_MODULE@$THEME_VERSION",
"buildDate": "$timestamp"
}
EOF
mkdir -p ${{inputs.docs_build_path}}/static/
cp buildInfo.json ${{inputs.docs_build_path}}/static/


- name: Build Hugo for PR preview
if: inputs.doc_type == 'hugo' && (github.event.action == 'synchronize' || github.event.action == 'opened' || env.DEPLOYMENT_ENV == 'preview')
working-directory: ${{inputs.docs_build_path}}
Expand Down