From 69692735a01118218d3ee1a58a7896cccfbe0ac4 Mon Sep 17 00:00:00 2001 From: Darren Worrall Date: Thu, 8 Aug 2024 11:58:38 +0100 Subject: [PATCH] Add prerelease branch --- .github/workflows/release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7f990459..c6d279b8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - prerelease jobs: build-debs: @@ -45,6 +46,8 @@ jobs: cat ghostferry-$GITHUB_SHA.sha256sum - name: Releasing Ghostferry to Github - run: gh release create --target ${GITHUB_REF#refs/heads/} -p release-${GITHUB_SHA::7} ghostferry* + run: | + if [[ "${GITHUB_REF#refs/heads/}" == "prerelease" ]]; then PRERELEASE="--prerelease"; fi + gh release create --target ${GITHUB_REF#refs/heads/} -p release-${GITHUB_SHA::7} ${PRERELEASE} ghostferry* env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}