Skip to content

Commit a183738

Browse files
authored
ci(feat): Release workflows (#172)
Signed-off-by: oliver könig <[email protected]>
1 parent 7f0210c commit a183738

File tree

3 files changed

+94
-0
lines changed

3 files changed

+94
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Create PR to main with cherry-pick from release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
cherry-pick:
10+
uses: NVIDIA/NeMo-FW-CI-templates/.github/workflows/[email protected]
11+
secrets:
12+
PAT: ${{ secrets.PAT }}
13+
SLACK_WEBHOOK_ADMIN: ${{ secrets.SLACK_WEBHOOK_ADMIN }}
14+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

.github/workflows/release-freeze.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "Code freeze"
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release-type:
7+
type: choice
8+
description: Type of release
9+
options:
10+
- major
11+
- minor
12+
freeze-commit:
13+
type: string
14+
description: Commit SHA to use for cut-off
15+
required: false
16+
default: main
17+
dry-run:
18+
type: boolean
19+
description: Dry-run of code-freeze
20+
required: false
21+
default: true
22+
jobs:
23+
code-freeze:
24+
uses: NVIDIA/NeMo-FW-CI-templates/.github/workflows/[email protected]
25+
with:
26+
library-name: NeMo Run
27+
python-package: nemo_run
28+
release-type: ${{ inputs.release-type }}
29+
freeze-commit: ${{ inputs.freeze-commit }}
30+
dry-run: ${{ inputs.dry-run }}
31+
secrets:
32+
SLACK_WEBHOOK: ${{ secrets.SLACK_RELEASE_ENDPOINT }}
33+
SLACK_WEBHOOK_ADMIN: ${{ secrets.SLACK_WEBHOOK_ADMIN }}

.github/workflows/release.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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

Comments
 (0)