|
| 1 | +# Copyright (c) 2025, 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: 'Test Publish Docs Action' |
| 15 | +on: |
| 16 | + workflow_dispatch: |
| 17 | + inputs: |
| 18 | + release-ref: |
| 19 | + description: Ref (SHA or branch name) to release |
| 20 | + required: true |
| 21 | + type: string |
| 22 | + dry-run: |
| 23 | + description: Whether to run the workflow in dry-run mode |
| 24 | + required: true |
| 25 | + type: boolean |
| 26 | + default: true |
| 27 | + |
| 28 | +jobs: |
| 29 | + build-docs: |
| 30 | + uses: NVIDIA-NeMo/FW-CI-templates/.github/workflows/[email protected] |
| 31 | + with: |
| 32 | + ref: ${{ inputs.release-ref }} |
| 33 | + |
| 34 | + publish-docs: |
| 35 | + runs-on: ubuntu-latest |
| 36 | + needs: [build-docs] |
| 37 | + env: |
| 38 | + DOCSET: 'test-publish-docs' # For testing only |
| 39 | + VERSION: '1.0.0' |
| 40 | + steps: |
| 41 | + - uses: actions/checkout@v6 |
| 42 | + with: |
| 43 | + repository: NVIDIA-NeMo/FW-CI-templates |
| 44 | + ref: v0.67.0 |
| 45 | + path: FW-CI-templates |
| 46 | + |
| 47 | + - uses: ./FW-CI-templates/.github/actions/publish-docs |
| 48 | + with: |
| 49 | + dry-run: ${{ inputs.dry-run }} |
| 50 | + artifacts-name: docs-html |
| 51 | + artifacts-path: _build/html |
| 52 | + |
| 53 | + request-name: test-publish-docs-${{ github.run_id }} |
| 54 | + run-on-version-tag-only: false |
| 55 | + aws-region: us-east-1 |
| 56 | + aws-role-to-assume: ${{ secrets.AWS_ASSUME_ROLE_ARN }} |
| 57 | + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} |
| 58 | + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
| 59 | + akamai-host: ${{ secrets.AKAMAI_HOST }} |
| 60 | + akamai-client-token: ${{ secrets.AKAMAI_CLIENT_TOKEN }} |
| 61 | + akamai-client-secret: ${{ secrets.AKAMAI_CLIENT_SECRET }} |
| 62 | + akamai-access-token: ${{ secrets.AKAMAI_ACCESS_TOKEN }} |
| 63 | + s3-target-root: ${{ secrets.S3_BUCKET_NAME }} |
| 64 | + s3-target-path: ${{ secrets.S3_BUCKET_PATH }} |
0 commit comments