generated from PlexSheep/baserepo
release script improvement
cargo devel CI / cargo CI (push) Has been cancelled
Details
cargo devel CI / cargo CI (push) Has been cancelled
Details
This commit is contained in:
parent
1d9325f89a
commit
4772893e8f
|
@ -4,11 +4,10 @@ NEW_VERSION=$(cat Cargo.toml | rg '^\s*version\s*=\s*"([^"]*)"\s*$' -or '$1')
|
||||||
VERSION=$(git rev-parse HEAD)
|
VERSION=$(git rev-parse HEAD)
|
||||||
GIT_COMMIT_SHA=$(git rev-parse HEAD)
|
GIT_COMMIT_SHA=$(git rev-parse HEAD)
|
||||||
BODY="
|
BODY="
|
||||||
|
$(git log $(git describe --tags --abbrev=0)..HEAD --pretty="- %s" -oneline --decorate)
|
||||||
$(git log $(git describe --tags --abbrev=0)..HEAD --pretty="- %s")
|
|
||||||
"
|
"
|
||||||
USER=PlexSheep
|
USER=PlexSheep
|
||||||
git tag "v$NEW_VERSION" || echo "could not tag"
|
git tag "v$NEW_VERSION-test" || echo "could not tag"
|
||||||
curl -X 'POST' \
|
curl -X 'POST' \
|
||||||
'https://git.cscherr.de/api/v1/repos/PlexSheep/pt/releases' \
|
'https://git.cscherr.de/api/v1/repos/PlexSheep/pt/releases' \
|
||||||
-H 'accept: application/json' \
|
-H 'accept: application/json' \
|
||||||
|
@ -16,8 +15,8 @@ curl -X 'POST' \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
-d '{
|
-d '{
|
||||||
"body": "'"$BODY"'",
|
"body": "'"$BODY"'",
|
||||||
"draft": true,
|
"draft": false,
|
||||||
"name": "string",
|
"name": "v'$NEW_VERSION'",
|
||||||
"prerelease": true,
|
"prerelease": true,
|
||||||
"tag_name": "v'$NEW_VERSION'",
|
"tag_name": "v'$NEW_VERSION'",
|
||||||
"target_commitish": "'$GIT_COMMIT_SHA'"
|
"target_commitish": "'$GIT_COMMIT_SHA'"
|
||||||
|
|
Reference in New Issue