@@ -14,55 +14,41 @@ jobs:
1414 contents : write
1515
1616 steps :
17- - name : Checkout repo
17+ - name : 🛎️ Checkout repository
1818 uses : actions/checkout@v4
1919 with :
2020 ref : ${{ github.ref_name }}
2121 fetch-depth : 0
2222
23- - name : Action | Semantic Version Release
23+ - name : 🏷️ Semantic Version Release
2424 id : release
2525 uses : python-semantic-release/python-semantic-release@v10.0.2
2626 with :
2727 github_token : ${{ secrets.GITHUB_TOKEN }}
2828 git_committer_name : " github-actions"
2929 git_committer_email : " actions@users.noreply.github.com"
3030
31- - name : Setup uv & venv
32- uses : astral-sh/setup-uv@v5
31+ - name : 🐍 Setup uv & venv
3332 if : steps.release.outputs.released == 'true'
33+ uses : astral-sh/setup-uv@v5
3434
35- - name : Update uv.lock
36- run : uv lock
35+ - name : 📦 Update uv.lock
3736 if : steps.release.outputs.released == 'true'
37+ run : uv lock
3838
39- - name : Commit uv.lock if changed
40- run : |
41- git config --global user.name "GitHub Actions"
42- git config --global user.email "actions@github.com"
43- if git diff --exit-code uv.lock > /dev/null; then
44- echo "uv.lock unchanged"
45- else
46- git add uv.lock
47- git pull --rebase
48- git commit -m "chore: update uv.lock for v${{ steps.release.outputs.version }} [skip ci]"
49- git push
50- fi
39+ - name : 🏗️ Build package (sdist & wheel)
5140 if : steps.release.outputs.released == 'true'
52-
53- - name : Build package
5441 run : uv build --no-sources
55- if : steps.release.outputs.released == 'true'
5642
57- - name : Publish | Upload to GitHub Release Assets
58- uses : python-semantic-release/publish-action@v10.0.2
43+ - name : 🚀 Publish | Upload to GitHub Release Assets
5944 if : steps.release.outputs.released == 'true'
45+ uses : python-semantic-release/publish-action@v10.0.2
6046 with :
6147 github_token : ${{ secrets.GITHUB_TOKEN }}
6248 tag : ${{ steps.release.outputs.tag }}
6349
64- - name : Publish to PyPI
50+ - name : 🐍 Publish to PyPI
51+ if : steps.release.outputs.released == 'true'
6552 env :
6653 UV_PUBLISH_TOKEN : ${{ secrets.PYPI_TOKEN }}
6754 run : uv publish
68- if : steps.release.outputs.released == 'true'
0 commit comments