Skip to content

Commit 8af7ddb

Browse files
committed
github: select build branches
Now that we have two active branches, we need to be selective about when CI runs.
1 parent 0aa3b35 commit 8af7ddb

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ name: Build and upload to PyPI
22

33
on:
44
push:
5+
branches:
6+
- mpy-cross-v6
7+
tags:
8+
- mpy-cross-v6/*
59
pull_request:
6-
release:
7-
types:
8-
- published
10+
branches:
11+
- mpy-cross-v6
912

1013
jobs:
1114
build_wheels:
@@ -54,8 +57,8 @@ jobs:
5457
upload_pypi:
5558
needs: [build_wheels, build_sdist]
5659
runs-on: ubuntu-22.04
57-
# upload to PyPI on every tag starting with 'v'
58-
if: github.event_name == 'release' && github.event.action == 'published'
60+
# upload to PyPI on every tag
61+
if: github.event_name == 'push' && github.ref_type == 'tag'
5962
steps:
6063
- uses: actions/download-artifact@v2
6164
with:

0 commit comments

Comments
 (0)