diff --git a/Makefile b/Makefile index 9c7e6a7..981f701 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ docs: format update-doc release: changelog docs - ansible-galaxy collection build + ansible-galaxy collection build --output-path dist upload: release ./upload.sh diff --git a/upload.sh b/upload.sh index fa372d9..39db413 100755 --- a/upload.sh +++ b/upload.sh @@ -3,4 +3,4 @@ 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/ansible/generic/${package}/${version}/${user}-${package}-${version}.tar.gz" +ansible-galaxy collection publish dist/*