Skip to content
Closed
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
19 changes: 19 additions & 0 deletions .craft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
changelogPolicy: auto

targets:
- name: github

- name: crates
includeNames: /^objectstore-client$/

- name: pypi
includeNames: /^dist\/.*/

- name: sentry-pypi
includeNames: /^dist\/.*/
internalPypiRepo: getsentry/pypi

requireNames:
- /^objectstore-client$/
- /^dist\/.*.whl$/
- /^dist\/.*.tar.gz$/
39 changes: 39 additions & 0 deletions .github/workflows/release-client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release client libraries

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

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
id: token
with:
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}

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

- uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2

- name: Prepare release
uses: getsentry/action-prepare-release@v1
env:
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
with:
version: ${{ github.event.inputs.version }}
force: ${{ github.event.inputs.force }}
Empty file added CHANGELOG.md
Empty file.
25 changes: 25 additions & 0 deletions scripts/bump-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash
set -euxo pipefail

ROOT_DIR="$(realpath $(dirname "$0")/..)"

OLD_VERSION="${1}"
NEW_VERSION="${2}"

echo "Current version: $OLD_VERSION"
echo "Bumping to version: $NEW_VERSION"

# =================== Rust ===================

cd $ROOT_DIR
cd objectstore-client

perl -pi -e "s/^version = \".*?\"/version = \"$NEW_VERSION\"/" Cargo.toml
cargo metadata --format-version 1 >/dev/null # update `Cargo.lock`

# ==================== PY ====================

cd $ROOT_DIR
cd python-objectstore-client

uv version "$NEW_VERSION"
Loading