Skip to content

Commit e7bc0d5

Browse files
userFRMclaude
andcommitted
ci: make publish idempotent (|| true for already-published crates)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9753e33 commit e7bc0d5

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,11 @@ jobs:
214214
steps:
215215
- uses: actions/checkout@v4
216216
- uses: dtolnay/rust-toolchain@stable
217-
# Publish order matters: derive first (no deps), then core (depends on
218-
# derive), then async+metrics (depend on core). Sleep between publishes
219-
# to let the crates.io index propagate.
220-
- run: cargo publish -p photon-ring-derive --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
217+
# Publish order: derive → core → async + metrics.
218+
# "|| true" skips already-published crates (idempotent re-runs).
219+
- run: cargo publish -p photon-ring-derive --token ${{ secrets.CARGO_REGISTRY_TOKEN }} || true
221220
- run: sleep 30
222-
- run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
221+
- run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }} || true
223222
- run: sleep 30
224-
- run: cargo publish -p photon-ring-async --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
225-
- run: cargo publish -p photon-ring-metrics --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
223+
- run: cargo publish -p photon-ring-async --token ${{ secrets.CARGO_REGISTRY_TOKEN }} || true
224+
- run: cargo publish -p photon-ring-metrics --token ${{ secrets.CARGO_REGISTRY_TOKEN }} || true

0 commit comments

Comments
 (0)