Skip to content

Commit

Permalink
Updated release workflo
Browse files Browse the repository at this point in the history
  • Loading branch information
esdandreu committed May 19, 2022
1 parent d378a7b commit 1f6c347
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Build release

on:
workflow_dispatch:
# Uncomment to build when pushing a tag
# push:
# tags:
# - "v*.*.*"
push:
tags:
- "v*.*.*"

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

That workflow is activated when pushing a version tag to the repository:
```
git tag v0.0.1
git push origin --tags
```

## Example usage

Expand Down

0 comments on commit 1f6c347

Please sign in to comment.