From 58298e9307b1a7678a7fabd1eee7aa4a437b4498 Mon Sep 17 00:00:00 2001 From: Jan Nidzwetzki Date: Tue, 2 Jan 2024 16:43:20 +0100 Subject: [PATCH] Automatically trigger package builds on release This patch adds a workflow to trigger package creation after a release is created on GitHub. --- .github/workflows/release_build_packages.yml | 22 ++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/release_build_packages.yml diff --git a/.github/workflows/release_build_packages.yml b/.github/workflows/release_build_packages.yml new file mode 100644 index 00000000000..965302fbadb --- /dev/null +++ b/.github/workflows/release_build_packages.yml @@ -0,0 +1,22 @@ +name: "Build distribution packages" + +"on": + release: + types: [released] + +jobs: + update: + runs-on: ubuntu-latest + + steps: + - name: Build distribution packages + env: + GH_TOKEN: ${{ secrets.ORG_AUTOMATION_TOKEN }} + run: | + gh workflow run docker-image.yml -R timescale/timescaledb-docker -f version=${{ github.event.release.tag_name }} + gh workflow run timescaledb-debian.yml -R timescale/release-build-scripts -f version=${{ github.event.release.tag_name }} -f upload-artifacts=true + gh workflow run timescaledb-ubuntu.yml -R timescale/release-build-scripts -f version=${{ github.event.release.tag_name }} -f upload-artifacts=true + gh workflow run timescaledb-apt-arm64.yml -R timescale/release-build-scripts -f version=${{ github.event.release.tag_name }} -f upload-artifacts=true + gh workflow run timescaledb-rpm.yml -R timescale/release-build-scripts -f version=${{ github.event.release.tag_name }} -f upload-artifacts=true + gh workflow run timescaledb-homebrew.yml -R timescale/release-build-scripts -f version=${{ github.event.release.tag_name }} -f upload-artifacts=true + gh workflow run timescaledb-windows.yml -R timescale/release-build-scripts -f version=${{ github.event.release.tag_name }} -f upload-artifacts=true