|
| 1 | +# Copyright (c) 2026, NVIDIA CORPORATION. |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | +name: Release docs |
| 15 | +on: |
| 16 | + workflow_dispatch: |
| 17 | + inputs: |
| 18 | + dry-run: |
| 19 | + description: Whether to run the workflow in dry-run mode |
| 20 | + required: true |
| 21 | + type: boolean |
| 22 | + default: true |
| 23 | + version-number: |
| 24 | + description: Version number to release this as (use `latest` for main branch) |
| 25 | + required: true |
| 26 | + type: string |
| 27 | + notify-emails: |
| 28 | + description: Email addresses to send the notification to. Format as "me@me.com,you@you.com". |
| 29 | + required: true |
| 30 | + type: string |
| 31 | + aws-region: |
| 32 | + description: AWS region |
| 33 | + required: false |
| 34 | + type: string |
| 35 | + default: us-east-1 |
| 36 | + |
| 37 | +jobs: |
| 38 | + build-docs: |
| 39 | + uses: NVIDIA-NeMo/FW-CI-templates/.github/workflows/_build_docs.yml@v0.67.0 |
| 40 | + |
| 41 | + publish-docs: |
| 42 | + runs-on: ubuntu-latest |
| 43 | + needs: [build-docs] |
| 44 | + steps: |
| 45 | + - uses: actions/checkout@v6 |
| 46 | + with: |
| 47 | + repository: NVIDIA-NeMo/FW-CI-templates |
| 48 | + ref: v0.67.2 |
| 49 | + path: FW-CI-templates |
| 50 | + |
| 51 | + - uses: ./FW-CI-templates/.github/actions/publish-docs |
| 52 | + # This workflow runs either on main, or on a version tag. Any other git ref will lead |
| 53 | + # to an error. |
| 54 | + # If its on main, it will publish to "latest" directory in Akamai. |
| 55 | + # If its on a versioned tag, it will extract the version number from the tag (strip `v` prefix) |
| 56 | + # and publish to the versioned directory in Akamai. |
| 57 | + with: |
| 58 | + dry-run: ${{ inputs.dry-run }} |
| 59 | + artifacts-name: docs-html |
| 60 | + artifacts-path: _build/html |
| 61 | + emails-csv: ${{ inputs.notify-emails && format('{0},{1}', vars.docs_release_emails, inputs.notify-emails) || vars.docs_release_emails }} |
| 62 | + overwrite-latest-on-tag: false |
| 63 | + run-on-version-tag-only: ${{ github.ref_name != 'main' }} |
| 64 | + request-name: automodel-publish-docs-${{ github.run_id }} |
| 65 | + aws-region: ${{ inputs.aws-region }} |
| 66 | + aws-role-to-assume: ${{ secrets.AWS_ASSUME_ROLE_ARN }} |
| 67 | + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} |
| 68 | + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
| 69 | + akamai-host: ${{ secrets.AKAMAI_HOST }} |
| 70 | + akamai-client-token: ${{ secrets.AKAMAI_CLIENT_TOKEN }} |
| 71 | + akamai-client-secret: ${{ secrets.AKAMAI_CLIENT_SECRET }} |
| 72 | + akamai-access-token: ${{ secrets.AKAMAI_ACCESS_TOKEN }} |
| 73 | + s3-target-root: ${{ secrets.S3_BUCKET_NAME }} |
| 74 | + s3-target-path: nemo/automodel |
0 commit comments