Dough Git

commit

update the workflow file

commit
b7202caf3730c9eb49d92b3034a155b36edb8bab
author
Clove <[email protected]>
date
2026-11-23 11:46

diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 0cc2574..81040c2 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -3,9 +3,7 @@
 name: Publish c4d to crates.io
 
 on:
-  push:
-    tags:
-      - 'v*'
+  workflow_dispatch:
 
 permissions:
   contents: read
@@ -23,14 +21,6 @@ jobs:
         with:
           persist-credentials: false
 
-      - name: Verify tag matches Cargo version
-        run: |
-          version="$(cargo metadata --locked --no-deps --format-version 1 | jq -er '.packages[] | select(.name == "c4d") | .version')"
-          if [[ "$GITHUB_REF_NAME" != "v$version" ]]; then
-            echo "Release tag must be v$version, found $GITHUB_REF_NAME." >&2
-            exit 1
-          fi
-
       - name: Test release
         run: cargo test --locked
 
diff --git a/README.md b/README.md
index 8c97ba1..17037a8 100644
--- a/README.md
+++ b/README.md
@@ -268,8 +268,9 @@ Keep transformations constrained to the spans that the adapter can verify.
 2. Set up [crates.io Trusted Publishing](https://crates.io/docs/trusted-publishing)
    for `doughmination/code4dyslexia`. Use the workflow filename `publish.yml`
    and the GitHub environment `crates-io`.
-3. For later versions, push a tag such as `v0.1.1` that matches `Cargo.toml`.
-   The [release workflow](.github/workflows/publish.yml) runs the tests and
-   publishes via an OIDC token.
+3. For later versions, push the version bump in `Cargo.toml` and `Cargo.lock`.
+   In GitHub Actions, open **Publish c4d to crates.io**, choose **Run workflow**,
+   and select the branch you want to publish. The workflow tests that branch
+   and publishes the version in its manifest via an OIDC token.
 
 [MIT licence](LICENSE).