Skip to content

Commit 469a78b

Browse files
committed
Combine bumpversion and build jobs to ensure correct commit is checkedout
1 parent adf5f91 commit 469a78b

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

.github/workflows/publish-to-pypi.yml

+3-16
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ on:
1111
workflow_dispatch:
1212

1313
jobs:
14-
bumpversion:
15-
name: Bumpversion
14+
build:
15+
name: Build distribution 📦
1616
runs-on: ubuntu-latest
17-
17+
1818
steps:
1919
- uses: actions/checkout@v4
2020
- name: Set up Python
@@ -36,19 +36,6 @@ jobs:
3636
git tag -f ${{ github.event.release.tag_name }}
3737
git push origin HEAD:v3.6-dev
3838
git push origin -f --tags
39-
40-
build:
41-
name: Build distribution 📦
42-
needs:
43-
- bumpversion
44-
runs-on: ubuntu-latest
45-
46-
steps:
47-
- uses: actions/checkout@v4
48-
- name: Set up Python
49-
uses: actions/setup-python@v4
50-
with:
51-
python-version: "3.x"
5239
- name: Install pypa/build
5340
run: >-
5441
python3 -m

requirements.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pytest
2+
wheel
3+
build
4+
twine
5+
bump2version

0 commit comments

Comments
 (0)