Skip to content

Commit

Permalink
build packages for any deb-based distro (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorerlingsson authored Oct 29, 2024
1 parent 01e4f30 commit d93a35c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,10 @@ jobs:
if: github.ref == 'refs/heads/main'
run: |
set -eux
curl -fsSO -u "${{ secrets.PACKAGECLOUD_TOKEN }}:" https://packagecloud.io/api/v1/distributions.json
for PKG_FILE in $(find pkgs -name "*.deb")
do
DIST_ID=$(jq ".deb[] | select(.index_name == \"ubuntu\").versions[] | select(.index_name == \"noble\").id" distributions.json)
curl -fsS -u "${{ secrets.PACKAGECLOUD_TOKEN }}:" -XPOST \
-F "package[distro_version_id]=${DIST_ID}" \
-F "package[distro_version_id]=35" \
-F "package[package_file]=@${PKG_FILE}" \
https://packagecloud.io/api/v1/repos/84codes/etcd/packages.json
done

0 comments on commit d93a35c

Please sign in to comment.