Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

Commit 5f309c8

Browse files
authored
Run bdist and upload when release is created
1 parent 6fb7e4c commit 5f309c8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/dist.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
name: 'Build distribution'
33

44
on:
5-
# Only run when pushing to main/merging PRs.
6-
push:
5+
# Only run when release is created in the master branch
6+
release:
7+
types: [created]
78
branches:
89
- 'master'
9-
- 'force_ci/all/**' # For development, forcing all workflows to run.
10-
- 'force_ci/dist/**' # For debugging and/or only forcing this workflow.
1110

1211
jobs:
1312
build_wheels:
@@ -96,7 +95,7 @@ jobs:
9695
name: 'Upload packages'
9796
needs: ['build_wheels', 'build_sdist']
9897
runs-on: 'ubuntu-latest'
99-
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
98+
if: github.event_name == 'release' && github.event.action == 'created'
10099
steps:
101100
- uses: actions/download-artifact@v2
102101
name: 'Download artifacts'

0 commit comments

Comments
 (0)