Skip to content

Commit 0ac4aea

Browse files
Update publish.yml
1 parent 4d478fb commit 0ac4aea

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

.github/workflows/publish.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,16 @@ jobs:
2121
- name: Install bump2version and build tools
2222
run: |
2323
python -m pip install --upgrade pip
24-
pip install bump2version build twine
24+
pip install bump2version==1.0.1 build twine
2525
- name: Bump patch version, commit, and tag
26-
env:
27-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28-
run: |
29-
bump2version patch --allow-dirty --commit --tag
30-
git config user.name "github-actions"
31-
git config user.email "github-actions@github.com"
32-
git add .
33-
git commit -m "ci: bump version [skip ci]"
34-
git push origin HEAD:master
35-
git push --tags
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
run: |
29+
git config user.name "github-actions"
30+
git config user.email "github-actions@github.com"
31+
bump2version patch --allow-dirty --commit --tag
32+
git push origin HEAD:master
33+
git push --tags
3634
3735
- name: Build package
3836
run: python -m build

0 commit comments

Comments
 (0)