Skip to content

Commit 9951f53

Browse files
authored
meta: Update publishing configuration/scripts (#229)
1 parent 57a46c4 commit 9951f53

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.craft.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
---
2-
# Configuration for sentry-craft (https://github.com/getsentry/craft)
1+
minVersion: "0.10.0"
32
github:
43
owner: getsentry
54
repo: sentry-rust
5+
changelogPolicy: auto
6+
67
targets:
78
- name: crates
89
- name: gh-pages
910
- name: github
10-
changelogPolicy: simple
11+
- name: registry
12+
type: sdk
13+
config:
14+
canonical: "cargo:sentry"

scripts/bump-version.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ NEW_VERSION="${2}"
1010
echo "Current version: ${OLD_VERSION}"
1111
echo "Bumping version: ${NEW_VERSION}"
1212

13-
perl -pi -e "s/^version = \".*?\"/version = \"$NEW_VERSION\"/" sentry/Cargo.toml
14-
perl -pi -e "s/^(sentry.*)?version = \".*?\"/\$1version = \"$NEW_VERSION\"/" sentry-actix/Cargo.toml
13+
find . -name Cargo.toml -type f -exec sed -i '' -e "s/^version.*/version = \"$NEW_VERSION\"/" {} \;
14+
find . -name Cargo.toml -type f -exec sed -i '' -e "s/^\(sentry.*version = \)\"[^\"]*\"/\\1\"$NEW_VERSION\"/" {} \;

0 commit comments

Comments
 (0)