Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Trigger Release

on:
workflow_dispatch:
inputs:
release_type:
description: "Release type"
required: true
type: choice
options:
- minor
- patch
release_name:
description: "Release name (short title)"
required: true
type: string

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for proper tagging
token: ${{ secrets.CHERRYPICK_PAT }}

- name: Install uv
uses: astral-sh/setup-uv@v7

- name: Bump version
run: |
uv version --bump ${{ inputs.release_type }}

- name: Update lock file
run: |
uv lock

- name: Get new version
id: new_version
run: |
NEW_VERSION=$(uv version | awk '{print $2}')
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT

- name: Commit version bump
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add pyproject.toml uv.lock
git commit -m "Bump version to ${{ steps.new_version.outputs.new_version }}"
git push origin HEAD

- name: Create and push tag
run: |
git tag ${{ steps.new_version.outputs.new_version }}
git push origin ${{ steps.new_version.outputs.new_version }}

- name: Create GitHub release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.new_version.outputs.new_version }}
name: ${{ inputs.release_name }}
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.CHERRYPICK_PAT }}
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "uv_build"

[project]
name = "broker"
version = "0.8.0"
version = "0.7.3"
description = "The infrastructure middleman."
readme = "README.md"
requires-python = ">=3.10"
Expand Down Expand Up @@ -33,6 +33,7 @@ dependencies = [
"rich_click",
"ruamel.yaml",
"click-shell",
"typing-extensions", # temporary until Python 3.12+ only
]

[project.urls]
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.