diff --git a/.craft.yml b/.craft.yml index b853b0feb..90a18f029 100644 --- a/.craft.yml +++ b/.craft.yml @@ -1,10 +1,14 @@ ---- -# Configuration for sentry-craft (https://github.com/getsentry/craft) +minVersion: "0.10.0" github: owner: getsentry repo: sentry-rust +changelogPolicy: auto + targets: - name: crates - name: gh-pages - name: github -changelogPolicy: simple + - name: registry + type: sdk + config: + canonical: "cargo:sentry" diff --git a/scripts/bump-version.sh b/scripts/bump-version.sh index 9295fe936..8b9e580cc 100755 --- a/scripts/bump-version.sh +++ b/scripts/bump-version.sh @@ -10,5 +10,5 @@ NEW_VERSION="${2}" echo "Current version: ${OLD_VERSION}" echo "Bumping version: ${NEW_VERSION}" -perl -pi -e "s/^version = \".*?\"/version = \"$NEW_VERSION\"/" sentry/Cargo.toml -perl -pi -e "s/^(sentry.*)?version = \".*?\"/\$1version = \"$NEW_VERSION\"/" sentry-actix/Cargo.toml +find . -name Cargo.toml -type f -exec sed -i '' -e "s/^version.*/version = \"$NEW_VERSION\"/" {} \; +find . -name Cargo.toml -type f -exec sed -i '' -e "s/^\(sentry.*version = \)\"[^\"]*\"/\\1\"$NEW_VERSION\"/" {} \;