Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

fix: only tag as prerelease when the version has an -alpha or -beta suffix (#1872)

Michael Bolin493e4c94631b
diff --git a/.github/workflows/rust-release.yml b/.github/workflows/rust-release.yml
index 3f1c084d91..812d7a3cfe 100644
--- a/.github/workflows/rust-release.yml
+++ b/.github/workflows/rust-release.yml
@@ -181,9 +181,9 @@ jobs:
name: ${{ steps.release_name.outputs.name }}
tag_name: ${{ github.ref_name }}
files: dist/**
- # For now, tag releases as "prerelease" because we are not claiming
- # the Rust CLI is stable yet.
- prerelease: true
+ # Mark as prerelease only when the version has a suffix after x.y.z
+ # (e.g. -alpha, -beta). Otherwise publish a normal release.
+ prerelease: ${{ contains(steps.release_name.outputs.name, '-') }}
- uses: facebook/dotslash-publish-release@v2
env: