Lightweight coding agent that runs in your terminal
Rust
Revert "feat(CI): Allow running `rust-release` manually and in dry-run mode (#5232)" (#5266)
Javifc1723f13185
diff --git a/.github/workflows/rust-release.yml b/.github/workflows/rust-release.ymlindex 7654e696cf..94143acb49 100644--- a/.github/workflows/rust-release.yml+++ b/.github/workflows/rust-release.yml@@ -10,16 +10,6 @@ on:push:tags:- "rust-v*.*.*"- workflow_dispatch:- inputs:- branch:- description: "Branch or tag to build"- required: true- default: "main"- dry_run:- description: "Skip publishing the release (dry run)"- type: boolean- default: falseconcurrency:group: ${{ github.workflow }}@@ -30,11 +20,8 @@ jobs:runs-on: ubuntu-lateststeps:- uses: actions/checkout@v5- with:- ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.branch || github.ref }}- name: Validate tag matches Cargo.toml version- if: ${{ github.event_name == 'push' }}shell: bashrun: |set -euo pipefail@@ -58,10 +45,6 @@ jobs:echo "✅ Tag and Cargo.toml agree (${tag_ver})"echo "::endgroup::"- - name: Skip tag validation (manual run)- if: ${{ github.event_name != 'push' }}- run: echo "Tag validation skipped for workflow_dispatch runs."-build:needs: tag-checkname: Build - ${{ matrix.runner }} - ${{ matrix.target }}@@ -94,8 +77,6 @@ jobs:steps:- uses: actions/checkout@v5- with:- ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.branch || github.ref }}- uses: dtolnay/[email protected]with:targets: ${{ matrix.target }}@@ -381,7 +362,6 @@ jobs:needs: buildname: releaseruns-on: ubuntu-latest- if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/rust-v') }}permissions:contents: writeactions: read@@ -476,7 +456,7 @@ jobs:# npm docs: https://docs.npmjs.com/trusted-publisherspublish-npm:# Publish to npm for stable releases and alpha pre-releases with numeric suffixes.- if: ${{ needs.release.result == 'success' && needs.release.outputs.should_publish_npm == 'true' }}+ if: ${{ needs.release.outputs.should_publish_npm == 'true' }}name: publish-npmneeds: releaseruns-on: ubuntu-latest@@ -545,7 +525,6 @@ jobs:contents: writeneeds: releaseruns-on: ubuntu-latest- if: ${{ needs.release.result == 'success' }}steps:- name: Update latest-alpha-cli branch