-
Notifications
You must be signed in to change notification settings - Fork 278
47 lines (41 loc) · 1.28 KB
/
tag-release.yml
File metadata and controls
47 lines (41 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# SPDX-License-Identifier: Apache-2.0
name: Tag Release
on:
workflow_dispatch:
inputs:
component:
description: "Component to tag (cuda_bindings implies cuda_python as well)"
required: true
type: choice
options:
- cuda_bindings
- cuda_core
- cuda_pathfinder
version:
description: "Version to tag (e.g. 1.2.3)"
required: true
type: string
jobs:
tag-release:
runs-on: ubuntu-latest
permissions:
contents: write
env:
TAG: ${{ fromJSON('{"cuda_bindings":"v","cuda_core":"cuda-core-v","cuda_pathfinder":"cuda-pathfinder-v"}')[inputs.component] }}${{ inputs.version }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Configure git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Create empty commit and tag
run: |
git commit --allow-empty -m "Release ${TAG}"
git tag "${TAG}"
- name: Push commit and tag
run: |
git push origin main
git push origin "${TAG}"