Skip to content

Commit dbeb106

Browse files
cursoragentlovasoa
andcommitted
Refine publish workflow to only publish tagged versions
Co-authored-by: contact <[email protected]>
1 parent 9c3d925 commit dbeb106

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ jobs:
2323
toolchain: stable
2424

2525
- name: Dry run workspace publish
26-
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
27-
run: cargo publish --workspace --dry-run --no-verify
26+
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
27+
run: cargo publish --workspace --dry-run
2828

2929
- name: Publish workspace
30-
if: ${{ startsWith(github.ref, 'refs/tags/') }}
30+
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
3131
env:
3232
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
3333
run: cargo publish --workspace

0 commit comments

Comments
 (0)