File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1
1
# See https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
2
2
name : Publish Python distribution to PyPI
3
3
4
- on : push
4
+ on :
5
+ push :
6
+ tags :
7
+ - ' *' # Push events to every tag not containing /
8
+
9
+ concurrency :
10
+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11
+ cancel-in-progress : true
5
12
6
13
jobs :
7
14
build :
31
38
publish-to-pypi :
32
39
name : >-
33
40
Publish Python distribution to PyPI
34
- if : startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
41
+ # if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
35
42
needs :
36
43
- build
37
44
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 14
14
- ' docs/**'
15
15
- ' *.md'
16
16
- ' *.rst'
17
+
18
+ concurrency :
19
+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
20
+ cancel-in-progress : true
21
+
17
22
jobs :
18
23
tests :
19
24
name : ${{ matrix.name }}
You can’t perform that action at this time.
0 commit comments