Skip to content

Commit

Permalink
Add prerelease branch
Browse files Browse the repository at this point in the history
  • Loading branch information
DazWorrall committed Aug 8, 2024
1 parent 5297aa6 commit 6969273
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- prerelease

jobs:
build-debs:
Expand Down Expand Up @@ -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 }}

0 comments on commit 6969273

Please sign in to comment.