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

22 lines
394 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -e
package="$1"
credentials="$2"
cd "$package"
2023-05-27 13:23:50 +00:00
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"