diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5a73d6d67..c6f2882fd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -166,8 +166,13 @@ jobs: env: GH_TOKEN: ${{ github.token }} run: | - gh release edit "$TAG" --repo "$REPO" --draft=false - echo "Release ${TAG} promoted to latest" + if [[ "$TAG" =~ -(dev|rc|alpha|beta) ]]; then + gh release edit "$TAG" --repo "$REPO" --draft=false --prerelease + echo "Release ${TAG} promoted as prerelease" + else + gh release edit "$TAG" --repo "$REPO" --draft=false + echo "Release ${TAG} promoted to latest" + fi - name: Mark Release Failed if: failure()