Skip to content

Commit a12bc83

Browse files
committed
Use github actions instead of manual
1 parent bc2b4de commit a12bc83

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v4
20-
with:
21-
fetch-depth: 0
22-
ref: bump-version
2320

2421
- name: Set up Python ${{ matrix.python-version }}
2522
uses: actions/setup-python@v5
@@ -37,31 +34,18 @@ jobs:
3734

3835
- name: Check that formatting, linting, and tests pass for pydantic v1
3936
run: poetry run make ci-v1
37+
4038
- name: Check that formatting, linting, and tests pass for pydantic v2
4139
run: poetry run make ci-v2
4240

4341
- name: Build distribution
4442
run: poetry build
4543

46-
- name: Configure git user
47-
run: |
48-
git config --global user.name 'BumpVersion[CI]'
49-
git config --global user.email '[email protected]'
50-
5144
- name: Bump to version
5245
run: poetry run make version version=${{ github.ref_name }}
5346

5447
- name: Commit new version
55-
run: |
56-
git commit -am "Update version to ${{ github.ref_name }}"
57-
git push
58-
59-
- name: Merge into master
60-
run: |
61-
git checkout master
62-
git pull
63-
git merge origin/bump-version
64-
git push
48+
uses: EndBug/add-and-commit@v9
6549

6650
- name: Publish distribution to PyPI
6751
run: |

0 commit comments

Comments
 (0)