From 3155996cec1d6598e16de605415305991fe1a775 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Thu, 3 Jun 2021 00:59:29 +0300 Subject: [PATCH] github actions: debugging package upload --- .github/workflows/packages.yml | 4 +++- packages/test-package/build.sh | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index d62d74f0ea..2dba451884 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -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. diff --git a/packages/test-package/build.sh b/packages/test-package/build.sh index c7018e5422..28af061df3 100644 --- a/packages/test-package/build.sh +++ b/packages/test-package/build.sh @@ -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 " -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