Skip to content

Commit c92d418

Browse files
authored
Upload built .deb packages to packagecloud (#198)
Based on Toolkit [script](https://github.com/timescale/release-build-scripts/blob/main/toolkit/upload-packages.sh) and [action](https://github.com/timescale/release-build-scripts/blob/main/.github/workflows/toolkit-package.yml). --------- Signed-off-by: Smitty <smitty@timescale.com>
1 parent 5520fe0 commit c92d418

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/deb-packager.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ jobs:
4545
TAG_GIT_REF: ${{ github.event.inputs.TAG_GIT_REF == '' && github.event.inputs.tag || github.event.inputs.TAG_GIT_REF}}
4646

4747
steps:
48+
- name: Install package_cloud
49+
run: |
50+
sudo apt-get -qq update
51+
sudo apt-get -qq install gcc g++ make ruby-all-dev
52+
sudo gem install rake --no-doc
53+
sudo gem install rainbow -v 2.2.2 --no-doc
54+
sudo gem install package_cloud --no-doc
55+
4856
- name: Checkout pgvectorscale
4957
uses: actions/checkout@v4
5058

@@ -82,10 +90,17 @@ jobs:
8290
(cd ${{ env.TAG_DIR }} && make package)
8391
bash scripts/package-deb.sh "${{ env.TAG }}" "${PWD}/${{ env.TAG_DIR }}" "$RUNNER_OS" "${{ matrix.pg.major }}"
8492
85-
# Use a GH artifact, then we can make use of the (quite limited) GH API https://docs.github.com/en/rest/actions/artifacts
86-
# The artifact will have a TTL of 90 days
93+
# Use a GH artifact, then we can make use of the (quite limited) GH API https://docs.github.com/en/rest/actions/artifacts
94+
# The artifact will have a TTL of 90 days
8795
- name: Upload deb as Artifact
8896
uses: actions/upload-artifact@v4
8997
with:
9098
name: pgvectorscale-${{ env.TAG }}-pg${{ matrix.pg.major }}-${{ matrix.platform.type }}
9199
path: pkgdump/pgvectorscale-*${{ env.TAG }}*.deb
100+
101+
- name: Upload to packagecloud
102+
env:
103+
PACKAGECLOUD_TOKEN: ${{ secrets.IO_PACKAGECLOUD_TOKEN }}
104+
run: |
105+
source /etc/os-release
106+
package_cloud push timescale/timescaledb/$ID/$VERSION_CODENAME pkgdump/pgvectorscale-*${{ env.TAG }}*.deb

0 commit comments

Comments
 (0)