Skip to content

feat(dpf): delegate DPU secure boot handling (#5845) #318

feat(dpf): delegate DPU secure boot handling (#5845)

feat(dpf): delegate DPU secure boot handling (#5845) #318

# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Publishes the Fern documentation site on push to main when fern/, docs/, or this
# workflow file changes, or when manually triggered from the Actions tab.
#
# Required configuration:
# - Organization secret: DOCS_FERN_TOKEN (from `fern token` for the nvidia Fern org)
name: Publish Fern Docs
on:
push:
branches:
- main
paths:
- 'fern/**'
- 'docs/**'
- '.github/workflows/publish-fern-docs.yml'
workflow_dispatch: {}
permissions:
contents: read
concurrency:
group: fern-publish
cancel-in-progress: true
jobs:
publish:
runs-on: linux-amd64-cpu4
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install Fern CLI
run: npm install -g fern-api@$(node -e "console.log(require('./fern/fern.config.json').version)")
- name: Publish Docs
env:
FERN_TOKEN: ${{ secrets.DOCS_FERN_TOKEN }}
working-directory: ./fern
run: |
OUTPUT=$(fern generate --docs 2>&1)
echo "$OUTPUT"
URL=$(echo "$OUTPUT" | grep -oP 'Published docs to \K.*(?= \()')
if [ -n "$URL" ]; then
echo "### Published: [$URL]($URL)" >> "$GITHUB_STEP_SUMMARY"
fi