From 0ae59dc16712851fdb0eedb2af96b95105f1fda7 Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Sun, 10 Dec 2023 20:51:54 +0100 Subject: [PATCH] added an script to upload the package --- Makefile | 3 +++ upload.sh | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100755 upload.sh 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"