|
36 | 36 | required: false |
37 | 37 | type: string |
38 | 38 | default: "" |
| 39 | + update-version-picker: |
| 40 | + description: Update version picker. |
| 41 | + required: false |
| 42 | + type: boolean |
| 43 | + default: true |
39 | 44 | notify-emails: |
40 | 45 | description: Email addresses to send the notification to. Format as "me@me.com,you@you.com". |
41 | 46 | required: false |
42 | 47 | type: string |
43 | 48 | default: "akoumparouli@nvidia.com" |
44 | | - aws-region: |
45 | | - description: AWS region |
| 49 | + github-ref: |
| 50 | + description: Github ref to checkout |
| 51 | + required: false |
| 52 | + type: string |
| 53 | + default: "" |
| 54 | + workflow_call: |
| 55 | + inputs: |
| 56 | + dry-run: |
| 57 | + description: Whether to run the workflow in dry-run mode |
| 58 | + required: false |
| 59 | + type: boolean |
| 60 | + default: true |
| 61 | + publish-as-latest: |
| 62 | + description: Publish as Latest stable version. |
| 63 | + required: false |
| 64 | + type: boolean |
| 65 | + default: true |
| 66 | + docs-version-override: |
| 67 | + description: Docs version if commit is not tagged |
46 | 68 | required: false |
47 | 69 | type: string |
48 | | - default: us-east-1 |
| 70 | + default: "" |
| 71 | + update-version-picker: |
| 72 | + description: Update version picker. |
| 73 | + required: false |
| 74 | + type: boolean |
| 75 | + default: true |
| 76 | + notify-emails: |
| 77 | + description: Email addresses to send the notification to. Format as "me@me.com,you@you.com". |
| 78 | + required: false |
| 79 | + type: string |
| 80 | + github-ref: |
| 81 | + description: Github ref to checkout |
| 82 | + required: false |
| 83 | + type: string |
| 84 | + default: "" |
49 | 85 |
|
50 | 86 | jobs: |
51 | 87 | build-docs: |
52 | 88 | uses: NVIDIA-NeMo/FW-CI-templates/.github/workflows/_build_docs.yml@v0.67.0 |
| 89 | + with: |
| 90 | + ref: ${{ inputs.github-ref }} |
53 | 91 |
|
54 | 92 | publish-docs: |
55 | 93 | runs-on: ubuntu-latest |
56 | 94 | needs: [build-docs] |
57 | 95 | env: |
58 | 96 | DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && inputs.dry-run || false }} |
59 | 97 | NOTIFY_EMAILS: ${{ github.event_name == 'workflow_dispatch' && inputs.notify-emails || 'akoumparouli@nvidia.com' }} |
60 | | - AWS_REGION: ${{ github.event_name == 'workflow_dispatch' && inputs.aws-region || 'us-east-1' }} |
61 | 98 | steps: |
62 | 99 | - uses: actions/checkout@v6 |
63 | 100 | with: |
64 | 101 | repository: NVIDIA-NeMo/FW-CI-templates |
65 | | - ref: v0.72.0 |
| 102 | + ref: v0.74.0 |
66 | 103 | path: FW-CI-templates |
67 | 104 |
|
68 | 105 | - uses: ./FW-CI-templates/.github/actions/publish-docs |
|
78 | 115 | emails-csv: ${{ env.NOTIFY_EMAILS }} |
79 | 116 | overwrite-latest-on-tag: ${{ inputs.publish-as-latest }} |
80 | 117 | docs-version-override: ${{ inputs.docs-version-override }} |
| 118 | + update-version-picker: ${{ inputs.update-version-picker }} |
81 | 119 | run-on-version-tag-only: ${{ github.ref_name != 'main' }} |
82 | 120 | request-name: automodel-publish-docs-${{ github.run_id }} |
83 | 121 | aws-region: ${{ vars.DOCS_AWS_REGION }} |
|
0 commit comments