Skip to content

Commit f3c6693

Browse files
committed
test fix release CI
1 parent 7d1a19d commit f3c6693

File tree

1 file changed

+6
-24
lines changed

1 file changed

+6
-24
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,35 +30,17 @@ jobs:
3030
pip install setuptools wheel twine bump2version git-changelog # better-exceptions(optional for debug)
3131
- name: Bump version
3232
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'
3535
bump2version patch
3636
NEW_VERSION=$(grep -Po '(?<=^version = ")[^"]*' pyproject.toml)
3737
echo "new_version=$NEW_VERSION" >> $GITHUB_ENV
3838
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
5741
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
6244
# package:
6345
# needs: release
6446
# runs-on: ubuntu-latest

0 commit comments

Comments
 (0)