Skip to content

Commit 79b76d7

Browse files
konardclaude
andcommitted
fix(ci): add --server and --yes to spacetime publish command
spacetime publish defaults to maincloud.spacetimedb.com and prompts for confirmation. Explicitly specify the local server and --yes flag to publish non-interactively to the local SpacetimeDB instance. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 38a8b43 commit 79b76d7

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/rust-benchmark.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,22 @@ jobs:
103103
if: runner.os != 'Windows'
104104
shell: bash
105105
run: |
106-
spacetime publish --bin-path target/wasm32-unknown-unknown/release/spacetime_module.wasm benchmark-links
106+
spacetime publish \
107+
--server http://localhost:3000 \
108+
--bin-path target/wasm32-unknown-unknown/release/spacetime_module.wasm \
109+
--yes \
110+
benchmark-links
107111
working-directory: rust/spacetime-module
108112

109113
- name: Publish SpacetimeDB module (Windows)
110114
if: runner.os == 'Windows'
111115
shell: pwsh
112116
run: |
113-
spacetime publish --bin-path target/wasm32-unknown-unknown/release/spacetime_module.wasm benchmark-links
117+
spacetime publish `
118+
--server http://localhost:3000 `
119+
--bin-path target/wasm32-unknown-unknown/release/spacetime_module.wasm `
120+
--yes `
121+
benchmark-links
114122
working-directory: rust/spacetime-module
115123

116124
- name: Run tests
@@ -174,7 +182,11 @@ jobs:
174182

175183
- name: Publish SpacetimeDB module
176184
run: |
177-
spacetime publish --bin-path target/wasm32-unknown-unknown/release/spacetime_module.wasm benchmark-links
185+
spacetime publish \
186+
--server http://localhost:3000 \
187+
--bin-path target/wasm32-unknown-unknown/release/spacetime_module.wasm \
188+
--yes \
189+
benchmark-links
178190
working-directory: rust/spacetime-module
179191

180192
- name: Build benchmark

0 commit comments

Comments
 (0)