Skip to content

High performance self-hosted photo and video management solution.

fix: prerelease draft (#29034)

Jason Rasmussene31d4aa909fc
diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml
index 1371b33c37..d29af8763b 100644
--- a/.github/workflows/prepare-release.yml
+++ b/.github/workflows/prepare-release.yml
@@ -50,6 +50,7 @@ jobs:
outputs:
ref: ${{ steps.push-tag.outputs.commit_long_sha }}
version: ${{ steps.output.outputs.version }}
+ rc: ${{ steps.output.outputs.rc }}
permissions: {} # No job-level permissions are needed because it uses the app-token
steps:
- id: token
@@ -81,7 +82,13 @@ jobs:
run: pnpm --silent release -s "${SERVER_BUMP}" -m "${MOBILE_BUMP}"
- id: output
- run: echo "version=$IMMICH_VERSION" >> $GITHUB_OUTPUT
+ run: |
+ echo "version=$IMMICH_VERSION" >> $GITHUB_OUTPUT
+ if [[ "$IMMICH_VERSION" =~ -rc\.[0-9]+$ ]]; then
+ echo "rc=true" >> $GITHUB_OUTPUT
+ else
+ echo "rc=false" >> $GITHUB_OUTPUT
+ fi
- name: Commit and tag
id: push-tag
@@ -145,6 +152,7 @@ jobs:
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0
with:
draft: true
+ prerelease: ${{ needs.bump_version.outputs.rc }}
tag_name: ${{ needs.bump_version.outputs.version }}
token: ${{ steps.generate-token.outputs.token }}
generate_release_notes: true