Release v0.3.11-alpha.1
cargo devel CI / cargo CI (push) Has been cancelled Details

This commit is contained in:
Christoph J. Scherr 2024-01-18 17:49:44 +01:00
parent e9820de2ab
commit 77475d5508
Signed by: PlexSheep
GPG Key ID: 7CDD0B14851A08EF
2 changed files with 25 additions and 6 deletions

View File

@ -10,7 +10,7 @@ members = [
default-members = [".", "members/libpt-core"] default-members = [".", "members/libpt-core"]
[workspace.package] [workspace.package]
publish = true publish = true
version = "0.3.11-alpha.0" version = "0.3.11-alpha.1"
edition = "2021" edition = "2021"
authors = ["Christoph J. Scherr <software@cscherr.de>"] authors = ["Christoph J. Scherr <software@cscherr.de>"]
license = "MIT" license = "MIT"
@ -28,11 +28,11 @@ categories = [
[workspace.dependencies] [workspace.dependencies]
anyhow = "1.0.79" anyhow = "1.0.79"
thiserror = "1.0.56" thiserror = "1.0.56"
libpt-core = { version = "0.3.11-alpha.0", path = "members/libpt-core" } libpt-core = { version = "0.3.11-alpha.1", path = "members/libpt-core" }
libpt-bintols = { version = "0.3.11-alpha.0", path = "members/libpt-bintols" } libpt-bintols = { version = "0.3.11-alpha.1", path = "members/libpt-bintols" }
libpt-log = { version = "0.3.11-alpha.0", path = "members/libpt-log" } libpt-log = { version = "0.3.11-alpha.1", path = "members/libpt-log" }
libpt-math = { version = "0.3.11-alpha.0", path = "members/libpt-math" } libpt-math = { version = "0.3.11-alpha.1", path = "members/libpt-math" }
libpt-net = { version = "0.3.11-alpha.0", path = "members/libpt-net" } libpt-net = { version = "0.3.11-alpha.1", path = "members/libpt-net" }
[package] [package]
name = "libpt" name = "libpt"

19
scripts/release.sh Normal file
View File

@ -0,0 +1,19 @@
#!/bin/bash
TOKEN=$(cat ~/.git-credentials | grep -P '(?:)[^:]*(?=@)' -os | head -2 | tail -1)
NEW_VERSION=$(cat Cargo.toml | rg '^\s*version\s*=\s*"([^"]*)"\s*$' -or '$1')
VERSION=$(git rev-parse HEAD)
NAME=$1
BODY=$2
curl -X 'POST' \
'https://git.cscherr.de/api/v1/repos/PlexSheep/pt/releases' \
-H 'accept: application/json' \
-H "Authorization: $TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"body": "'$BODY'",
"draft": true,
"name": "'$NAME'",
"prerelease": true,
"tag_name": "v'$NEW_VERSION'",
"target_commitish": "'$COMMIT_SHA'"
}'