update workflow, install python, tool
This commit is contained in:
@@ -11,7 +11,7 @@ on:
|
|||||||
type: boolean
|
type: boolean
|
||||||
bump:
|
bump:
|
||||||
description: 'Bump type'
|
description: 'Bump type'
|
||||||
required: false
|
required: true
|
||||||
default: 'patch'
|
default: 'patch'
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
@@ -28,16 +28,20 @@ jobs:
|
|||||||
|
|
||||||
- name: Install uv
|
- name: Install uv
|
||||||
uses: astral-sh/setup-uv@v5
|
uses: astral-sh/setup-uv@v5
|
||||||
|
- name: Set up Python
|
||||||
|
run: uv python install
|
||||||
|
with:
|
||||||
|
python-version-file: "pyproject.toml"
|
||||||
|
|
||||||
- name: Install the project
|
- name: Install the project
|
||||||
run: uv sync --locked --all-extras --dev
|
run: uv sync --locked --all-extras --dev
|
||||||
|
- name: Install Bump tool
|
||||||
- name: Bump version
|
run: uv tool install bump-my-version
|
||||||
id: bump
|
|
||||||
- name: Bump version
|
- name: Bump version
|
||||||
id: bump_version
|
id: bump_version
|
||||||
run: |
|
run: |
|
||||||
uv tool run bump-my-version bump ${{ github.event.inputs.bump }} --tag --allow-dirty
|
uv tool run bump-my-version bump ${{ github.event.inputs.bump }} --allow-dirty
|
||||||
|
|
||||||
- name: Add release notes to environment
|
- name: Add release notes to environment
|
||||||
id: add_release_notes
|
id: add_release_notes
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user