File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -192,14 +192,24 @@ jobs:
192
192
uses : actions-rs/cargo@v1
193
193
with :
194
194
command : publish
195
- args : --no-verify - p matrix-http-rendezvous
195
+ args : -p matrix-http-rendezvous
196
196
env :
197
197
CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
198
198
199
+ - name : Try publishing (dry-run) a few times, waiting for the index to propagate
200
+ run : |
201
+ for i in $(seq 1 30); do
202
+ if cargo publish --no-verify --dry-run -p matrix-http-rendezvous-server; then
203
+ break
204
+ fi
205
+ echo "Attempt $i failed, retrying in 10s"
206
+ sleep 10
207
+ done
208
+
199
209
- name : Publish matrix-http-rendezvous-server on crates.io
200
210
uses : actions-rs/cargo@v1
201
211
with :
202
212
command : publish
203
- args : --no-verify - p matrix-http-rendezvous-server
213
+ args : -p matrix-http-rendezvous-server
204
214
env :
205
215
CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
You can’t perform that action at this time.
0 commit comments