Skip to content

Commit 160c788

Browse files
committed
updated push script to upload all distro types
1 parent f75a4a6 commit 160c788

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ branding:
44
icon: package
55
color: blue
66
inputs:
7-
package-name:
8-
description: Name of the package to upload
9-
required: true
7+
deb-package-name:
8+
description: Name of the deb package to upload
9+
required: false
10+
rpm-package-name:
11+
description: Name of the rpm package to upload
12+
required: false
1013
packagecloud-username:
1114
description: The username to use on PackageCloud.io
1215
required: true
1316
packagecloud-repo:
1417
description: The repository to upload on this user
1518
required: true
16-
packagecloud-distrib:
17-
description: The distribution/version this package is meant to
18-
required: false
1919
packagecloud-token:
2020
description: The Token with push access
2121
required: true

push.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ UPLOAD_PATH="${PACKAGECLOUD_USERNAME}/${PACKAGECLOUD_REPO}"
2626
if [ -n "${DEB_PACKAGE_NAME}" ]; then
2727
for DST in ${DEB_DSTS[@]}; do
2828
echo "Uploading ${DEB_PACKAGE_NAME} to $DST"
29-
package_cloud push ${UPLOAD_PATH}/$DST ${DEB_PACKAGE_NAME} --skip-errors
29+
package_cloud push ${UPLOAD_PATH}/${DST} ${DEB_PACKAGE_NAME} --skip-errors
3030
done
3131
fi
3232

3333
if [ -n "${RPM_PACKAGE_NAME}" ]; then
3434
for DST in ${RPM_DSTS[@]}; do
3535
echo "Uploading ${RPM_PACKAGE_NAME} to $DST"
36-
package_cloud push ${UPLOAD_PATH}/$DST ${RPM_PACKAGE_NAME} --skip-errors
36+
package_cloud push ${UPLOAD_PATH}/${DST} ${RPM_PACKAGE_NAME} --skip-errors
3737
done
3838
fi
3939
# if [ -n "${PACKAGECLOUD_DISTRIB}" ]; then

0 commit comments

Comments
 (0)