Skip to content

Commit 1751e70

Browse files
committed
add: manual release tag
1 parent ad1816e commit 1751e70

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/build-wheel-graceful.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ on:
55
tags:
66
- 'v*'
77
workflow_dispatch:
8+
inputs:
9+
create_release:
10+
description: 'Create a release'
11+
required: false
12+
type: boolean
13+
default: false
814

915
jobs:
1016
build-x86_64:
@@ -68,7 +74,7 @@ jobs:
6874
release:
6975
runs-on: ubuntu-latest
7076
needs: [build-x86_64]
71-
if: startsWith(github.ref, 'refs/tags/')
77+
if: startsWith(github.ref, 'refs/tags/') || github.event.inputs.create_release == 'true'
7278
permissions:
7379
contents: write
7480

@@ -88,12 +94,15 @@ jobs:
8894
- name: Create Release
8995
uses: softprops/action-gh-release@v2
9096
with:
91-
name: Release ${{ github.ref_name }}
97+
name: Release ${{ github.event.inputs.create_release == 'true' && format('Manual Release {0}', github.run_number) || github.ref_name }}
98+
tag_name: ${{ github.event.inputs.create_release == 'true' && format('manual-{0}', github.run_number) || github.ref_name }}
9299
body: |
93100
Prebuilt dlib wheels for Linux x86_64 on Python 3.10, 3.11, and 3.12
94101
95102
**Installation:**
96-
```pip install dlib-*.whl```
103+
104+
```pip install dlib-*.whl```
105+
97106
Choose the wheel that matches your Python version (cp310, cp311, or cp312)
98107
files: wheels/*.whl
99108
draft: false

0 commit comments

Comments
 (0)