ci: try uv bump #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Bump version | ||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| inputs: | ||
| bump_level: | ||
| description: "Bump level" | ||
| required: true | ||
| default: "patch" | ||
| type: choice | ||
| options: | ||
| - patch | ||
| - minor | ||
| - major | ||
| jobs: | ||
| bump_version: | ||
| runs-on: ubuntu-latest | ||
| name: 'Bump version, tag and create github release' | ||
| steps: | ||
| - name: Check out | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v6 | ||
| - name: Create bump and changelog | ||
| with: | ||
| github_token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}" | ||
| script: uv version bump ${{ github.event.inputs.bump_level }} | ||
| - name: Release | ||
| uses: softprops/action-gh-release@v1 | ||
| with: | ||
| tag_name: "${{ env.REVISION }}" | ||
| env: | ||
| GITHUB_TOKEN: "${{ secrets.PERSONAL_ACCESS_TOKEN }}" | ||