|
45 | 45 | TAG_GIT_REF: ${{ github.event.inputs.TAG_GIT_REF == '' && github.event.inputs.tag || github.event.inputs.TAG_GIT_REF}}
|
46 | 46 |
|
47 | 47 | 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 | +
|
48 | 56 | - name: Checkout pgvectorscale
|
49 | 57 | uses: actions/checkout@v4
|
50 | 58 |
|
@@ -82,10 +90,17 @@ jobs:
|
82 | 90 | (cd ${{ env.TAG_DIR }} && make package)
|
83 | 91 | bash scripts/package-deb.sh "${{ env.TAG }}" "${PWD}/${{ env.TAG_DIR }}" "$RUNNER_OS" "${{ matrix.pg.major }}"
|
84 | 92 |
|
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 |
87 | 95 | - name: Upload deb as Artifact
|
88 | 96 | uses: actions/upload-artifact@v4
|
89 | 97 | with:
|
90 | 98 | name: pgvectorscale-${{ env.TAG }}-pg${{ matrix.pg.major }}-${{ matrix.platform.type }}
|
91 | 99 | 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