File tree Expand file tree Collapse file tree 1 file changed +6
-24
lines changed Expand file tree Collapse file tree 1 file changed +6
-24
lines changed Original file line number Diff line number Diff line change @@ -30,35 +30,17 @@ jobs:
30
30
pip install setuptools wheel twine bump2version git-changelog # better-exceptions(optional for debug)
31
31
- name : Bump version
32
32
run : |
33
- git config user.name "SunsetWolf"
34
- git config user.email "Lv.Linlang@hotmail. com"
33
+ git config --global user.name 'github-actions[bot]'
34
+ git config --global user.email 'github-actions[bot]@users.noreply.github. com'
35
35
bump2version patch
36
36
NEW_VERSION=$(grep -Po '(?<=^version = ")[^"]*' pyproject.toml)
37
37
echo "new_version=$NEW_VERSION" >> $GITHUB_ENV
38
38
echo "New version: $NEW_VERSION"
39
- - name : Push changes
40
- env :
41
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42
- run : |
43
- ls -l /home/runner
44
- echo "${{ secrets.PRIVATE_KEY }}" >> /home/runner/private_key
45
- chmod 600 /home/runner/private_key
46
- ls -l /home/runner
47
- GIT_SSH_COMMAND="ssh -i /home/runner/private_key" git push --follow-tags origin HEAD:main
48
- - name : Generate changelog
49
- run : |
50
- make changelog
51
- - name : Prepare release notes
52
- run : make release-notes > release-notes.md
53
- - name : Create GitHub release
54
- uses : softprops/action-gh-release@v2
55
- env :
56
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39
+ - name : Release please
40
+ uses : google-github-actions/release-please-action@v4
57
41
with :
58
- tag_name : ${{ env.new_version }}
59
- release_name : Release ${{ env.new_version }}
60
- body_path : release-notes.md
61
- prerelease : false
42
+ token : ${{ secrets.PAT }}
43
+ release-type : simple
62
44
# package:
63
45
# needs: release
64
46
# runs-on: ubuntu-latest
You can’t perform that action at this time.
0 commit comments