#!/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"