Skip to content
Open
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
28 changes: 28 additions & 0 deletions .github/workflows/build-client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build Python client

on:
push:
branches:
- release/**

permissions:
contents: read

jobs:
build:
name: Build and upload artifacts
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- uses: astral-sh/setup-uv@5a7eac68fb9809dea845d802897dc5c723910fa3 # v7.1.3

- name: Build artifacts
run: uv build --package taskbroker-client

- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: ${{ github.sha }}
path: dist/*
if-no-files-found: 'error'
40 changes: 40 additions & 0 deletions .github/workflows/release-client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
on:
workflow_dispatch:
inputs:
version:
description: Version to release
required: true
force:
description: Force a release even when there are release-blockers (optional)
required: false
merge_target:
description: Target branch to merge into. Uses the default branch as a fallback (optional)
required: false

permissions:
contents: read

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Get auth token
id: token
uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
with:
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}

- uses: actions/checkout@v4
with:
token: ${{ steps.token.outputs.token }}
fetch-depth: 0

- name: Prepare release
uses: getsentry/craft@c6e2f04939b6ee67030588afbb5af76b127d8203 # v2
env:
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
with:
version: ${{ github.event.inputs.version }}
force: ${{ github.event.inputs.force }}
path: clients
12 changes: 12 additions & 0 deletions clients/.craft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
changelogPolicy: auto
preReleaseCommand: ../scripts/bump-version-clients.sh

targets:
- name: github
- name: pypi
- name: sentry-pypi
internalPypiRepo: getsentry/pypi

requireNames:
- /.*taskbroker_client.*whl$/
- /.*taskbroker_client.*tar\.gz$/
1 change: 1 addition & 0 deletions clients/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Changelog
9 changes: 9 additions & 0 deletions scripts/bump-version-clients.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
set -euo pipefail

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ROOT_DIR=$(dirname $SCRIPT_DIR)

cd $ROOT_DIR/clients/python

uv version "${NEW_VERSION}"
Loading