@@ -2,81 +2,30 @@ name: Crates Publish (Dry Run)
22
33on :
44 workflow_dispatch :
5- workflow_call :
5+ inputs :
6+ ref :
7+ description : " Optional git tag or commit SHA to publish from"
8+ type : string
9+ required : false
610
711jobs :
812 rust-ci :
9- if : github.event_name == 'workflow_dispatch'
1013 uses : ./.github/workflows/rust_ci.yaml
11-
12- publish-to-crates-io-dry-run-sift_rs :
13- runs-on : ubuntu-latest
14- name : Do a dry run publish to crates.io for sift_rs
15- needs : rust-ci
16- environment :
17- name : crates.io (dry run)
18- steps :
19- - uses : actions/checkout@v3
20- - uses : actions-rs/toolchain@v1
21- with :
22- toolchain : stable
23- override : true
24- - uses : katyo/publish-crates@v2
25- with :
26- registry-token : ${{ secrets.CARGO_REGISTRY_TOKEN }}
27- path : ' ./rust/crates/sift_rs'
28- dry-run : true
29-
30- publish-to-crates-io-dry-run-sift_error :
14+ with :
15+ ref : ${{ github.event.inputs.ref }}
16+
17+ publish-to-crates-io-dry-run :
3118 runs-on : ubuntu-latest
32- name : Do a dry run publish to crates.io for sift_error
19+ name : Do a dry run publish to crates.io for the sift rust libraries
3320 needs : rust-ci
3421 environment :
3522 name : crates.io (dry run)
3623 steps :
37- - uses : actions/checkout@v3
38- - uses : actions-rs/toolchain@v1
39- with :
40- toolchain : stable
41- override : true
42- - uses : katyo/publish-crates@v2
43- with :
44- registry-token : ${{ secrets.CARGO_REGISTRY_TOKEN }}
45- path : ' ./rust/crates/sift_error'
46- dry-run : true
47-
48- publish-to-crates-io-dry-run-sift_connect :
49- runs-on : ubuntu-latest
50- name : Do a dry run publish to crates.io for sift_connect
51- needs : rust-ci
52- environment :
53- name : crates.io (dry run)
54- steps :
55- - uses : actions/checkout@v3
56- - uses : actions-rs/toolchain@v1
57- with :
58- toolchain : stable
59- override : true
60- - uses : katyo/publish-crates@v2
61- with :
62- registry-token : ${{ secrets.CARGO_REGISTRY_TOKEN }}
63- path : ' ./rust/crates/sift_connect'
64- dry-run : true
65-
66- publish-to-crates-io-dry-run-sift_stream :
67- runs-on : ubuntu-latest
68- name : Do a dry run publish to crates.io for sift_stream
69- needs : rust-ci
70- environment :
71- name : crates.io (dry run)
72- steps :
73- - uses : actions/checkout@v3
74- - uses : actions-rs/toolchain@v1
75- with :
76- toolchain : stable
77- override : true
78- - uses : katyo/publish-crates@v2
79- with :
80- registry-token : ${{ secrets.CARGO_REGISTRY_TOKEN }}
81- path : ' ./rust/crates/sift_stream'
82- dry-run : true
24+ - name : Checkout code
25+ uses : actions/checkout@v4
26+ with :
27+ ref : ${{ github.event.inputs.ref || github.sha }}
28+ - name : Install stable toolchain
29+ uses : dtolnay/rust-toolchain@stable
30+ - name : Publish crates (dry run)
31+ run : cargo publish --workspace --exclude sift-stream-bindings --manifest-path ./rust/Cargo.toml --locked --dry-run
0 commit comments