Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Commit

Permalink
Upload wheels as release assets
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelange committed Jun 7, 2022
1 parent 80d814c commit 9bc4052
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@
# * https://github.com/marketplace/actions/cancel-workflow-action
# * https://github.com/vmactions/freebsd-vm

on: [push, pull_request]
on:
pull_request:
push:
branches: master
release:
types: [released, prereleased]
workflow_dispatch: # allows running workflow manually from the Actions tab
name: build
jobs:
# Linux + macOS + Windows CPython 3.6+
Expand Down Expand Up @@ -63,6 +69,11 @@ jobs:
with:
name: wheels
path: wheelhouse

- uses: softprops/action-gh-release@v1
if: github.event_name == 'release'
with:
files: wheelhouse/*.whl

- name: Print hashes
if: matrix.os == 'ubuntu-latest'
Expand Down Expand Up @@ -157,6 +168,11 @@ jobs:
name: wheels
path: wheelhouse

- uses: softprops/action-gh-release@v1
if: github.event_name == 'release'
with:
files: wheelhouse/*.whl

- name: Print hashes
if: matrix.os == 'ubuntu-latest'
run: |
Expand Down

0 comments on commit 9bc4052

Please sign in to comment.