Skip to content

Commit 4c72e87

Browse files
committed
feat: use official python-semantic-release GitHub Action
- Replace custom semantic-release setup with official action v10.5.3 - Handles authentication and git configuration automatically - Simplifies workflow and improves reliability - Should resolve 401 Unauthorized issues with GitHub releases
1 parent 68b316e commit 4c72e87

1 file changed

Lines changed: 5 additions & 32 deletions

File tree

.github/workflows/semantic-release.yml

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -42,36 +42,9 @@ jobs:
4242
fetch-depth: 0
4343
token: ${{ secrets.GITHUB_TOKEN }}
4444

45-
- name: Setup Python and UV
46-
uses: ./.github/actions/setup-python-uv
45+
- name: Python Semantic Release
46+
uses: python-semantic-release/python-semantic-release@v10.5.3
4747
with:
48-
python-version: '3.11'
49-
50-
- name: Install semantic-release
51-
run: |
52-
source .venv/bin/activate
53-
pip install python-semantic-release
54-
55-
- name: Run semantic release
56-
env:
57-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58-
RELEASE_MODE: ${{ inputs.mode || 'forward' }}
59-
RELEASE_COMMIT: ${{ inputs.commit }}
60-
RELEASE_VERSION: ${{ inputs.version }}
61-
run: |
62-
source .venv/bin/activate
63-
64-
if [ "${{ inputs.mode }}" = "historical" ]; then
65-
if [ -z "${{ inputs.commit }}" ] || [ -z "${{ inputs.version }}" ]; then
66-
echo "ERROR: Historical releases require both commit and version"
67-
exit 1
68-
fi
69-
echo "Creating historical release ${{ inputs.version }} from commit ${{ inputs.commit }}"
70-
RELEASE_MODE=historical RELEASE_COMMIT=${{ inputs.commit }} RELEASE_VERSION=${{ inputs.version }} semantic-release version
71-
elif [ "${{ inputs.mode }}" = "analysis" ]; then
72-
echo "Running release analysis"
73-
RELEASE_MODE=analysis ./dev-tools/release/analyze_rc_readiness.sh
74-
else
75-
echo "Running forward release with semantic-release"
76-
semantic-release version
77-
fi
48+
github_token: ${{ secrets.GITHUB_TOKEN }}
49+
git_committer_name: "github-actions[bot]"
50+
git_committer_email: "github-actions[bot]@users.noreply.github.com"

0 commit comments

Comments
 (0)