|
42 | 42 | fetch-depth: 0 |
43 | 43 | token: ${{ secrets.GITHUB_TOKEN }} |
44 | 44 |
|
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 |
47 | 47 | 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