Skip to content

Commit

Permalink
Combine bumpversion and build jobs to ensure correct commit is checke…
Browse files Browse the repository at this point in the history
…dout
  • Loading branch information
AndyEveritt committed Dec 4, 2024
1 parent adf5f91 commit 469a78b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ on:
workflow_dispatch:

jobs:
bumpversion:
name: Bumpversion
build:
name: Build distribution 📦
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand All @@ -36,19 +36,6 @@ jobs:
git tag -f ${{ github.event.release.tag_name }}
git push origin HEAD:v3.6-dev
git push origin -f --tags
build:
name: Build distribution 📦
needs:
- bumpversion
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python3 -m
Expand Down
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pytest
wheel
build
twine
bump2version

0 comments on commit 469a78b

Please sign in to comment.