Skip to content

Commit 1403391

Browse files
committed
fix: 🐛 Fix release workflow
1 parent 5beddf8 commit 1403391

File tree

1 file changed

+12
-23
lines changed

1 file changed

+12
-23
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -33,38 +33,27 @@ jobs:
3333
github_token: ${{ secrets.GITHUB_TOKEN }}
3434

3535
- name: Update checkout
36-
run: |
37-
git pull
3836
if: steps.release.outputs.released == 'true'
37+
run: git pull
38+
39+
- name: Update lock file
40+
if: steps.release.outputs.released == 'true'
41+
run: uv lock
3942

4043
- name: Build distribution
44+
if: steps.release.outputs.released == 'true'
4145
run: uv build
4246

4347
- name: Publish to PyPI
44-
uses: pypa/gh-action-pypi-publish@release/v1
4548
if: steps.release.outputs.released == 'true'
49+
uses: pypa/gh-action-pypi-publish@release/v1
4650

47-
- name: Update files
48-
uses: MathieuSoysal/file-updater-for-release@v1.0.1
49-
with:
50-
files: README.md
51-
prefix: 'rev: '
52-
with-checkout: false
53-
version: ${{ steps.release.outputs.version }}
54-
55-
- name: Commit GitHub Action distribution
56-
run: |
57-
git config --local user.email "action@github.com"
58-
git config --local user.name "GitHub Action"
59-
git add README.md
60-
git commit -m 'Update files' || true
61-
62-
- name: Push changes
63-
uses: ad-m/github-push-action@master
51+
- name: Commit changes
52+
if: steps.release.outputs.released == 'true'
53+
uses: stefanzweifel/git-auto-commit-action@v5
6454
with:
65-
github_token: ${{ secrets.GITHUB_TOKEN }}
66-
branch: ${{ github.ref }}
67-
force: true
55+
commit_message: Build by GitHub Actions
56+
file_pattern: uv.lock
6857

6958
release_binaries:
7059
name: Release binaries

0 commit comments

Comments
 (0)