This repository has been archived on 2024-05-06. You can view files and clone it, but cannot push or open issues or pull requests.
package/upload-gitea-package.sh

21 lines
394 B
Bash
Executable file

#!/usr/bin/env bash
set -e
package="$1"
credentials="$2"
cd "$package"
makedeb -s
# Source infos
. "/etc/makepkg.conf"
. "PKGBUILD"
package_name="${pkgname}_${CARCH}.deb"
package_path="${pkgname}_${pkgver}-${pkgrel}_${CARCH}.deb"
curl --user "$credentials" \
--upload-file "$package_path" \
"https://git.serguzim.me/api/packages/emgauwa/generic/$pkgname/$pkgver/$package_name"