diff --git a/scripts/export-docs-from-image b/scripts/export-docs-from-image index c6c51a01..45a3f8d7 100755 --- a/scripts/export-docs-from-image +++ b/scripts/export-docs-from-image @@ -17,4 +17,5 @@ rm borgmatic-docs-dump.tar mv html borgmatic-docs rm -f dist/borgmatic-docs.tar.gz tar cfz dist/borgmatic-docs.tar.gz borgmatic-docs +rm -fr borgmatic-docs podman rm --volumes "$docs_container_id" diff --git a/scripts/release b/scripts/release index 7660ba3b..50f4a801 100755 --- a/scripts/release +++ b/scripts/release @@ -34,7 +34,7 @@ git push github $version # Build borgmatic and publish to pypi. rm -fr dist 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) twine upload -r pypi --username __token__ "$tarball_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 "Accept: 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") curl --silent --request POST \ "https://projects.torsion.org/api/v1/repos/borgmatic-collective/borgmatic/releases/$release_id/assets?name=$(basename $wheel_path)" \