Skip to content

Commit

Permalink
Rename ubuntu ddeb packages to deb so that packagecloud accepts them
Browse files Browse the repository at this point in the history
  • Loading branch information
carlhoerberg committed Mar 28, 2023
1 parent 70c5da8 commit 1a59011
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ jobs:
fi
curl -fsSO -u "${{ secrets.packagecloud_token }}:" https://packagecloud.io/api/v1/distributions.json
DIST_ID=$(jq ".deb[] | select(.index_name == \"${ID}\").versions[] | select(.version_number == \"${VERSION_ID}\").id" distributions.json)
rename .ddeb .deb builds/*.ddeb
for PKG_FILE in $(find builds -name "*.deb")
do curl -u "${{ secrets.packagecloud_token }}:" -XPOST --no-progress-meter \
-F "package[distro_version_id]=${DIST_ID}" \
Expand All @@ -102,6 +103,7 @@ jobs:
fi
curl -fsSO -u "${{ secrets.packagecloud_token }}:" https://packagecloud.io/api/v1/distributions.json
DIST_ID=$(jq ".deb[] | select(.index_name == \"${ID}\").versions[] | select(.version_number == \"${VERSION_ID}\").id" distributions.json)
rename .ddeb .deb builds/*.ddeb
for PKG_FILE in $(find builds -name "*.deb")
do curl -u "${{ secrets.packagecloud_token }}:" -XPOST --no-progress-meter \
-F "package[distro_version_id]=${DIST_ID}" \
Expand Down

0 comments on commit 1a59011

Please sign in to comment.