|
| 1 | +# Copyright (c) 2020-2021, 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 NeMo Run" |
| 15 | + |
| 16 | +on: |
| 17 | + workflow_dispatch: |
| 18 | + inputs: |
| 19 | + release-ref: |
| 20 | + description: Ref (SHA or branch name) to release |
| 21 | + required: true |
| 22 | + type: string |
| 23 | + dry-run: |
| 24 | + description: Do not publish a wheel and GitHub release. |
| 25 | + required: true |
| 26 | + default: true |
| 27 | + type: boolean |
| 28 | + version-bump-branch: |
| 29 | + type: string |
| 30 | + required: true |
| 31 | + description: Branch to target for version bump |
| 32 | +jobs: |
| 33 | + release: |
| 34 | + uses: NVIDIA/NeMo-FW-CI-templates/.github/workflows/[email protected] |
| 35 | + with: |
| 36 | + release-ref: ${{ inputs.release-ref }} |
| 37 | + python-package: nemo_run |
| 38 | + python-version: "3.10" |
| 39 | + library-name: NeMo Run |
| 40 | + dry-run: ${{ inputs.dry-run }} |
| 41 | + version-bump-branch: ${{ inputs.version-bump-branch }} |
| 42 | + secrets: |
| 43 | + TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} |
| 44 | + TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} |
| 45 | + SLACK_WEBHOOK_ADMIN: ${{ secrets.SLACK_WEBHOOK_ADMIN }} |
| 46 | + SLACK_WEBHOOK: ${{ secrets.SLACK_RELEASE_ENDPOINT }} |
| 47 | + PAT: ${{ secrets.PAT }} |
0 commit comments