github actions: debugging package upload
This commit is contained in:
parent
319a5cd548
commit
3155996cec
4
.github/workflows/packages.yml
vendored
4
.github/workflows/packages.yml
vendored
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user