Skip to content

Commit 1f6c347

Browse files
committed
Updated release workflo
1 parent d378a7b commit 1f6c347

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
name: Build release
22

33
on:
4-
workflow_dispatch:
5-
# Uncomment to build when pushing a tag
6-
# push:
7-
# tags:
8-
# - "v*.*.*"
4+
push:
5+
tags:
6+
- "v*.*.*"
97

108
jobs:
119
build_wheels:

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,15 @@ A template for a standalone C++ library with dependencies managed by
1616
If you want to distribute your extension using `pip` or `conda` and you mind
1717
that your users take a long time to install it, then it might be better to
1818
build some binaries instead of optimizing the build process. This template
19-
might still be useful for you as it has workflows for building python wheels
20-
with
21-
[cibuildwheel](https://github.com/pypa/cibuildwheel).
19+
might still be useful for you as it has a
20+
[release](.github/workflows/release.yml) workflow for building python wheels
21+
with [cibuildwheel](https://github.com/pypa/cibuildwheel).
2222

23+
That workflow is activated when pushing a version tag to the repository:
24+
```
25+
git tag v0.0.1
26+
git push origin --tags
27+
```
2328

2429
## Example usage
2530

0 commit comments

Comments
 (0)