release script improvement
cargo devel CI / cargo CI (push) Successful in 2m9s Details

This commit is contained in:
Christoph J. Scherr 2024-01-18 22:02:06 +01:00
parent 1d9325f89a
commit 16ec8a6662
Signed by: PlexSheep
GPG Key ID: 7CDD0B14851A08EF
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ BODY="
$(git log $(git describe --tags --abbrev=0)..HEAD --pretty="- %s") $(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' \
@ -17,7 +17,7 @@ curl -X 'POST' \
-d '{ -d '{
"body": "'"$BODY"'", "body": "'"$BODY"'",
"draft": true, "draft": true,
"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'"