mirror of
https://github.com/borgmatic-collective/borgmatic.git
synced 2026-07-22 02:03:01 +02:00
Fix release script brokenness.
This commit is contained in:
@@ -17,4 +17,5 @@ rm borgmatic-docs-dump.tar
|
|||||||
mv html borgmatic-docs
|
mv html borgmatic-docs
|
||||||
rm -f dist/borgmatic-docs.tar.gz
|
rm -f dist/borgmatic-docs.tar.gz
|
||||||
tar cfz dist/borgmatic-docs.tar.gz borgmatic-docs
|
tar cfz dist/borgmatic-docs.tar.gz borgmatic-docs
|
||||||
|
rm -fr borgmatic-docs
|
||||||
podman rm --volumes "$docs_container_id"
|
podman rm --volumes "$docs_container_id"
|
||||||
|
|||||||
+2
-2
@@ -34,7 +34,7 @@ git push github $version
|
|||||||
# Build borgmatic and publish to pypi.
|
# Build borgmatic and publish to pypi.
|
||||||
rm -fr dist
|
rm -fr dist
|
||||||
uv build
|
uv build
|
||||||
tarball_path=$(ls dist/borgmatic-*.tar.gz)
|
tarball_path="dist/borgmatic-$version.tar.gz"
|
||||||
wheel_path=$(ls dist/borgmatic-*-py3-none-any.whl)
|
wheel_path=$(ls dist/borgmatic-*-py3-none-any.whl)
|
||||||
twine upload -r pypi --username __token__ "$tarball_path"
|
twine upload -r pypi --username __token__ "$tarball_path"
|
||||||
twine upload -r pypi --username __token__ "$wheel_path"
|
twine upload -r pypi --username __token__ "$wheel_path"
|
||||||
@@ -51,7 +51,7 @@ release_id=$(curl --silent --request POST \
|
|||||||
--header "Authorization: token $projects_token" \
|
--header "Authorization: token $projects_token" \
|
||||||
--header "Accept: application/json" \
|
--header "Accept: application/json" \
|
||||||
--header "Content-Type: application/json" \
|
--header "Content-Type: application/json" \
|
||||||
--data "{\"body\": \"$escaped_release_changelog\", \"draft\": false, \"name\": \"borgmatic $version\", \"prerelease\": false, \"tag_name\": \"$version\"}"
|
--data "{\"body\": \"$escaped_release_changelog\", \"draft\": false, \"name\": \"borgmatic $version\", \"prerelease\": false, \"tag_name\": \"$version\"}" \
|
||||||
| jq ".id")
|
| jq ".id")
|
||||||
curl --silent --request POST \
|
curl --silent --request POST \
|
||||||
"https://projects.torsion.org/api/v1/repos/borgmatic-collective/borgmatic/releases/$release_id/assets?name=$(basename $wheel_path)" \
|
"https://projects.torsion.org/api/v1/repos/borgmatic-collective/borgmatic/releases/$release_id/assets?name=$(basename $wheel_path)" \
|
||||||
|
|||||||
Reference in New Issue
Block a user