github actions: debugging package upload

This commit is contained in:
Leonid Pliushch 2021-06-03 00:59:29 +03:00
parent 319a5cd548
commit 3155996cec
No known key found for this signature in database
GPG Key ID: 45F2964132545795
2 changed files with 4 additions and 2 deletions

View File

@ -158,12 +158,14 @@ jobs:
done
# TODO: handle errors instead of relying on curl exit code.
uploaded_files=false
find debs -type f -iname "*.deb" | while read -r filename; do
echo "uploading"
for filename in debs/*.deb; do
# Upload file to temporary directory.
curl --fail -X POST -u "${{ secrets.APTLY_API_AUTH }}" -F file=@${filename} \
https://packages.termux.org/aptly-api/files/${REPOSITORY_NAME}-${{ github.sha }}
uploaded_files=true
done
echo "publishing"
if [ "$uploaded_files" = "true" ]; then
# This assigns the uploaded file to given repository.
# Temporary directory is being removed at this step.

View File

@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://github.com/termux
TERMUX_PKG_DESCRIPTION="Special package for testing repository management setup. Intended to be used ONLY by Termux maintainers."
TERMUX_PKG_LICENSE="Public Domain"
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
TERMUX_PKG_VERSION=1.0
TERMUX_PKG_VERSION=1.1
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_SKIP_SRC_EXTRACT=true
TERMUX_PKG_METAPACKAGE=true