diff --git a/Makefile b/Makefile index 214461e..9c7e6a7 100644 --- a/Makefile +++ b/Makefile @@ -10,3 +10,6 @@ docs: format release: changelog docs ansible-galaxy collection build + +upload: release + ./upload.sh diff --git a/upload.sh b/upload.sh new file mode 100755 index 0000000..f2cafaa --- /dev/null +++ b/upload.sh @@ -0,0 +1,6 @@ +#!/bin/bash +user=$(yq -r .namespace galaxy.yml) +package=$(yq -r .name galaxy.yml) +version=$(yq -r .version galaxy.yml) +printf "Namespace: %s\nPackage: %s\nVersion: %s\nfile name: %s\n" $user $package $version "$user-$package-$version.tar.gz" +curl -u sebastian --upload-file "${user}-${package}-${version}.tar.gz" "https://gitea.sebastian-tobie.de/api/packages/${user}/generic/${package}/${version}/${user}-${package}-${version}.tar.gz"