Skip to content

Commit 4dc8ae0

Browse files
authored
Add actions steps to register new versions (#344)
1 parent d70680b commit 4dc8ae0

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/publish.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,19 @@ jobs:
3535
- name: Build distribution
3636
run: poetry build
3737

38+
- name: Bump to version
39+
run: poetry run make version version=${{ github.ref_name }}
40+
41+
- name: Commit new version
42+
run: |
43+
git config --global user.name 'BumpVersion[CI]'
44+
git config --global user.email '[email protected]'
45+
git commit -am "Update version to ${{ github.ref_name }}"
46+
git push
47+
3848
- name: Publish distribution to PyPI
39-
run: poetry publish
49+
run: |
50+
echo "will publish ${poetry version}"
4051
env:
4152
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
4253

0 commit comments

Comments
 (0)