Skip to content

Commit 3bbc0ca

Browse files
Tried auto version increment
1 parent b0ecb6f commit 3bbc0ca

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/python-publish.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,17 @@ jobs:
3131
python -m pip install --upgrade pip
3232
pip install build
3333
pip install toml
34-
- name: Build package
34+
- name: Update version number
3535
run: |
36-
python increment_version.py
37-
python -m build
36+
# Note: the following account information will not work on GHES
37+
git config user.name "github-actions[bot]"
38+
git config user.email ""
39+
python increment_version.py
40+
git add .
41+
git commit -m "generated"
42+
git push
43+
- name: Build package
44+
run: python -m build
3845
- name: Publish package
3946
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
4047
with:

0 commit comments

Comments
 (0)