Skip to content

Commit 94f0807

Browse files
committed
ci: run release workflows for version tags
1 parent 629bd1b commit 94f0807

8 files changed

Lines changed: 30 additions & 5 deletions

‎.github/workflows/build-and-release.yaml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Build Release
22

3-
on: workflow_dispatch
3+
on:
4+
push:
5+
tags:
6+
- "v[0-9]+.[0-9]+.[0-9]+"
7+
workflow_dispatch:
48

59
permissions:
610
contents: write

‎.github/workflows/build-docker.yaml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Build Docker
22

3-
on: workflow_dispatch
3+
on:
4+
push:
5+
tags:
6+
- "v[0-9]+.[0-9]+.[0-9]+"
7+
workflow_dispatch:
48

59
permissions:
610
contents: write

‎.github/workflows/build-wheels-cuda.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Build Wheels (CUDA)
22

33
on:
4+
push:
5+
tags:
6+
- "v[0-9]+.[0-9]+.[0-9]+"
47
workflow_dispatch:
58
inputs:
69
release_tag:

‎.github/workflows/build-wheels-metal.yaml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Build Wheels (Metal)
22

3-
on: workflow_dispatch
3+
on:
4+
push:
5+
tags:
6+
- "v[0-9]+.[0-9]+.[0-9]+"
7+
workflow_dispatch:
48

59
permissions:
610
contents: write

‎.github/workflows/build-wheels-rocm.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Build Wheels (ROCm)
22

33
on:
4+
push:
5+
tags:
6+
- "v[0-9]+.[0-9]+.[0-9]+"
47
workflow_dispatch:
58
inputs:
69
release_tag:

‎.github/workflows/build-wheels-vulkan.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Build Wheels (Vulkan)
22

33
on:
4+
push:
5+
tags:
6+
- "v[0-9]+.[0-9]+.[0-9]+"
47
workflow_dispatch:
58
inputs:
69
release_tag:

‎.github/workflows/generate-index-from-release.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Wheels Index
33
on:
44
# Trigger on new release
55
workflow_run:
6-
workflows: ["Release", "Build Wheels (CUDA)", "Build Wheels (Metal)", "Build Wheels (Vulkan)", "Build Wheels (ROCm)"]
6+
workflows: ["Build Release", "Build Wheels (CUDA)", "Build Wheels (Metal)", "Build Wheels (Vulkan)", "Build Wheels (ROCm)"]
77
types:
88
- completed
99

‎.github/workflows/publish.yaml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ name: Publish to PyPI
22

33
# Based on: https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
44

5-
on: workflow_dispatch
5+
on:
6+
push:
7+
tags:
8+
- "v[0-9]+.[0-9]+.[0-9]+"
9+
workflow_dispatch:
610

711
jobs:
812
build-n-publish:

0 commit comments

Comments
 (0)